From: Jeffrey Altman Date: Wed, 26 May 2004 04:36:44 +0000 (+0000) Subject: * cc_mslsa.c: GetMSTGT() Initialize pTicketRequest to NULL to prevent X-Git-Tag: krb5-1.4-beta1~397 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94456795895f7298bf52f5041fa3c6195d5f54bb;p=krb5.git * 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 --- diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index d4dd3be9e..aec6dbc93 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -1,3 +1,8 @@ +2004-05-25 Jeffrey Altman + + * cc_mslsa.c: GetMSTGT(). Initialize pTicketRequest to NULL + to prevent it being freed prior to allocation. + 2004-05-24 Ezra Peisach * 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 93a938d82..383d4e8c2 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;