DEVEL15-windows-nim-afscred-double-free-20071127
authorAsanka Herath <asanka@secure-endpoints.com>
Tue, 27 Nov 2007 17:31:39 +0000 (17:31 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 27 Nov 2007 17:31:39 +0000 (17:31 +0000)
fix a double free on error condition

(cherry picked from commit 4172d60820fdf3375091b0a451e8d25809019d8d)

src/WINNT/netidmgr_plugin/afsfuncs.c

index 8b80732..471ed98 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005,2006 Secure Endpoints Inc.
+ * Copyright (c) 2005,2006,2007 Secure Endpoints Inc.
  *
  * Permission is hereby granted, free of charge, to any person
  * obtaining a copy of this software and associated documentation
@@ -900,6 +900,7 @@ afs_klog(khm_handle identity,
 
         if (r) {
             _reportf(L"Code %d while getting credentials", r);
+            k5creds = NULL;
             goto end_krb5;
         }