Blame SOURCES/openldap-nss-pk11-freeslot.patch

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