* cc_mslsa.c: GetMSTGT() Initialize pTicketRequest to NULL to prevent
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 26 May 2004 04:36:44 +0000 (04:36 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 26 May 2004 04:36:44 +0000 (04:36 +0000)
   inadvertant deallocation.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16363 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_mslsa.c

index d4dd3be9e3f2ea9e266ee9c42df49220b03c5410..aec6dbc9320b3eed719ccff3049ede2f4ecbae43 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-25  Jeffrey Altman <jaltman@mit.edu>
+
+    * cc_mslsa.c:  GetMSTGT().  Initialize pTicketRequest to NULL 
+      to prevent it being freed prior to allocation.
+
 2004-05-24  Ezra Peisach  <epeisach@mit.edu>
 
        * t_cc.c (cc_test): Clean up memory leaks in tests.
index 93a938d8284504170923d8ce89be59e2d3c8ecfc..383d4e8c2dd9bca92606ad07d14de2abf1fa8707 100644 (file)
@@ -607,7 +607,7 @@ GetMSTGT(HANDLE LogonHandle, ULONG PackageId,KERB_EXTERNAL_TICKET **ticket)
     DWORD   Error;
 
     KERB_QUERY_TKT_CACHE_REQUEST CacheRequest;
-    PKERB_RETRIEVE_TKT_REQUEST pTicketRequest;
+    PKERB_RETRIEVE_TKT_REQUEST pTicketRequest = NULL;
     PKERB_RETRIEVE_TKT_RESPONSE pTicketResponse = NULL;
     ULONG RequestSize;
     ULONG ResponseSize;