tstellar / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone
2f8c754
Resolves: #929357
2f8c754
5dba8cc
Upstream commit: 6330d1b87a45b447f33fe8ffd6fbbce9e60bb0ec
5dba8cc
Author: Rich Megginson <rmeggins@redhat.com>
2f8c754
Date: Thu, 28 Mar 2013 19:05:02 -0600
5dba8cc
Modified by: Jan Synacek <jsynacek@redhat.com>
2f8c754
5dba8cc
This patch has been re-diffed so it clearly applies to OpenLDAP 2.4.39.
2f8c754
2f8c754
diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c
2f8c754
index 072d41d..c59d303 100644
2f8c754
--- a/libraries/libldap/tls_m.c
2f8c754
+++ b/libraries/libldap/tls_m.c
5dba8cc
@@ -2151,6 +2151,8 @@
2f8c754
 				   "TLS: could not close certdb slot - error %d:%s.\n",
2f8c754
 				   errcode, PR_ErrorToString( errcode, PR_LANGUAGE_I_DEFAULT ), 0 );
2f8c754
 		}
2f8c754
+		PK11_FreeSlot( c->tc_certdb_slot );
2f8c754
+		c->tc_certdb_slot = NULL;
2f8c754
 	}
5dba8cc
 	if ( c->tc_pin_file ) {
5dba8cc
 		PL_strfree( c->tc_pin_file );
2f8c754