summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2004-05-26 04:36:44 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2004-05-26 04:36:44 +0000
commit94456795895f7298bf52f5041fa3c6195d5f54bb (patch)
treef017a8574a26d08dd04442509f2825c6dbf70972 /src/lib/krb5
parentb880eb00dabdfb8a20912e12b6296524f80e97df (diff)
downloadkrb5-94456795895f7298bf52f5041fa3c6195d5f54bb.tar.gz
krb5-94456795895f7298bf52f5041fa3c6195d5f54bb.tar.xz
krb5-94456795895f7298bf52f5041fa3c6195d5f54bb.zip
* cc_mslsa.c: GetMSTGT() Initialize pTicketRequest to NULL to prevent
inadvertant deallocation. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16363 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5')
-rw-r--r--src/lib/krb5/ccache/ChangeLog5
-rw-r--r--src/lib/krb5/ccache/cc_mslsa.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog
index d4dd3be9e3..aec6dbc932 100644
--- a/src/lib/krb5/ccache/ChangeLog
+++ b/src/lib/krb5/ccache/ChangeLog
@@ -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.
diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c
index 93a938d828..383d4e8c2d 100644
--- a/src/lib/krb5/ccache/cc_mslsa.c
+++ b/src/lib/krb5/ccache/cc_mslsa.c
@@ -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;