From 94456795895f7298bf52f5041fa3c6195d5f54bb Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 26 May 2004 04:36:44 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/ccache/ChangeLog | 5 +++++ src/lib/krb5/ccache/cc_mslsa.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.26.2