Blame SOURCES/openldap-rwm-reference-counting.patch

6756b0
Author: Jan Synáček <jsynacek@redhat.com>
6756b0
Resolves: #1061405
6756b0
Upstream ITS: #7723
6756b0
6756b0
Correctly count references in rwm overlay.
6756b0
6756b0
--- a/libraries/librewrite/session.c	2010-04-13 22:23:09.000000000 +0200
6756b0
+++ b/libraries/librewrite/session.c	2013-11-08 08:47:26.000000000 +0100
6756b0
@@ -161,6 +161,7 @@
6756b0
 #ifdef USE_REWRITE_LDAP_PVT_THREADS
6756b0
 	if ( session ) {
6756b0
 		ldap_pvt_thread_mutex_lock( &session->ls_mutex );
6756b0
+		session->ls_count++;
6756b0
 	}
6756b0
 	ldap_pvt_thread_rdwr_runlock( &info->li_cookies_mutex );
6756b0
 #endif /* USE_REWRITE_LDAP_PVT_THREADS */
6756b0
@@ -178,6 +179,7 @@
6756b0
 )
6756b0
 {
6756b0
 	assert( session != NULL );
6756b0
+	session->ls_count--;
6756b0
 	ldap_pvt_thread_mutex_unlock( &session->ls_mutex );
6756b0
 }
6756b0
 
6756b0
6756b0