[26182] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

svn rev #25522: branches/krb5-1-10/src/lib/krb5/ccache/

daemon@ATHENA.MIT.EDU (tlyu@mit.edu)
Mon Dec 5 18:43:30 2011

Date: Mon, 5 Dec 2011 18:43:28 -0500
From: tlyu@mit.edu
Message-Id: <201112052343.pB5NhSjj026327@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

http://src.mit.edu/fisheye/changelog/krb5/?cs=25522
Commit By: tlyu
Log Message:
ticket: 7037
version_fixed: 1.10
status: resolved

pull up r25499 from trunk

 ------------------------------------------------------------------------
 r25499 | hartmans | 2011-12-02 14:20:54 -0500 (Fri, 02 Dec 2011) | 7 lines

 ticket: 7037
 subject:  Use LsaDeregisterLogonProcess(), not CloseHandle()
 target_version: 1.10
 tags: pullup

 Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>


Changed Files:
U   branches/krb5-1-10/src/lib/krb5/ccache/cc_mslsa.c
Modified: branches/krb5-1-10/src/lib/krb5/ccache/cc_mslsa.c
===================================================================
--- branches/krb5-1-10/src/lib/krb5/ccache/cc_mslsa.c	2011-12-05 23:43:25 UTC (rev 25521)
+++ branches/krb5-1-10/src/lib/krb5/ccache/cc_mslsa.c	2011-12-05 23:43:28 UTC (rev 25522)
@@ -668,7 +668,7 @@
 
         pTicketRequest = (PKERB_RETRIEVE_TKT_REQUEST) LocalAlloc(LMEM_ZEROINIT, RequestSize);
         if (!pTicketRequest) {
-            CloseHandle(LogonHandle);
+            LsaDeregisterLogonProcess(LogonHandle);
             return FALSE;
         }
 
@@ -693,7 +693,7 @@
         );
 
         LocalFree(pTicketRequest);
-        CloseHandle(LogonHandle);
+        LsaDeregisterLogonProcess(LogonHandle);
 
         if (FAILED(Status) || FAILED(SubStatus)) {
             if ( SubStatus == STATUS_NOT_SUPPORTED )
@@ -733,7 +733,7 @@
 
         pCacheRequest = (PKERB_QUERY_TKT_CACHE_REQUEST) LocalAlloc(LMEM_ZEROINIT, RequestSize);
         if (!pCacheRequest) {
-            CloseHandle(LogonHandle);
+            LsaDeregisterLogonProcess(LogonHandle);
             return FALSE;
         }
 
@@ -751,7 +751,7 @@
         );
 
         LocalFree(pCacheRequest);
-        CloseHandle(LogonHandle);
+        LsaDeregisterLogonProcess(LogonHandle);
 
         if (!(FAILED(Status) || FAILED(SubStatus))) {
             LsaFreeReturnBuffer(pCacheResponse);
@@ -2048,7 +2048,7 @@
 
     lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache));
     if (lid == NULL) {
-        CloseHandle(LogonHandle);
+        LsaDeregisterLogonProcess(LogonHandle);
         return KRB5_CC_NOMEM;
     }
 
@@ -2057,7 +2057,7 @@
     lid->data = (krb5_pointer) malloc(sizeof(krb5_lcc_data));
     if (lid->data == NULL) {
         free(lid);
-        CloseHandle(LogonHandle);
+        LsaDeregisterLogonProcess(LogonHandle);
         return KRB5_CC_NOMEM;
     }
 
@@ -2071,7 +2071,7 @@
     if (data->cc_name == NULL) {
         free(lid->data);
         free(lid);
-        CloseHandle(LogonHandle);
+        LsaDeregisterLogonProcess(LogonHandle);
         return KRB5_CC_NOMEM;
     }
     strcpy(data->cc_name, residual);
@@ -2093,7 +2093,7 @@
         free(data->cc_name);
         free(lid->data);
         free(lid);
-        CloseHandle(LogonHandle);
+        LsaDeregisterLogonProcess(LogonHandle);
         return KRB5_FCC_NOFILE;
     }
 
@@ -2168,7 +2168,7 @@
         data = (krb5_lcc_data *) id->data;
 
         if (data) {
-            CloseHandle(data->LogonHandle);
+            LsaDeregisterLogonProcess(data->LogonHandle);
             free(data);
         }
         free(id);

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post