From 3a290273e0f947efa014831652526b49192cdcc4 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 10 Sep 2004 17:34:31 +0000 Subject: [PATCH] cc_mslsa.c: Correct test for KerbQueryTicketCacheEx2Message ticket: 2705 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16736 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ChangeLog | 3 +++ src/lib/krb5/ccache/cc_mslsa.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index 64be621eb..42ae60354 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -1,3 +1,6 @@ +2004-09-10 Jeffrey Altman + * cc_mslsa.c: Correct test for KerbQueryTicketCacheExMessage + 2004-09-09 Jeffrey Altman * cc_mslsa.c: The following functionality is being committed diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c index c782e633d..9b8025c77 100644 --- a/src/lib/krb5/ccache/cc_mslsa.c +++ b/src/lib/krb5/ccache/cc_mslsa.c @@ -592,9 +592,9 @@ does_query_ticket_cache_ex2 (void) LocalFree(pCacheRequest); CloseHandle(LogonHandle); - if (FAILED(Status) || FAILED(SubStatus)) { - if ( SubStatus != STATUS_NOT_SUPPORTED ) - fEx2Response = TRUE; + if (!(FAILED(Status) || FAILED(SubStatus))) { + LsaFreeReturnBuffer(pCacheResponse); + fEx2Response = TRUE; } fChecked = TRUE; } -- 2.26.2