From: Quanah Gibson-Mount Date: Tue, 11 Jan 2011 20:19:14 +0000 (+0000) Subject: ITS#6438 X-Git-Tag: OPENLDAP_REL_ENG_2_4_24~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=498496b9119d9fcd47e333d630950e4d829753a2;p=openldap ITS#6438 --- diff --git a/CHANGES b/CHANGES index 61be8684b1..28768b8374 100644 --- a/CHANGES +++ b/CHANGES @@ -102,6 +102,7 @@ OpenLDAP 2.4.24 Engineering Fixed slapo-syncprov CSN updates to all replicas (ITS#6718) Fixed slapo-syncprov sessionlog ordering (ITS#6716) Fixed slapo-syncprov sessionlog with adds (ITS#6503) + Fixed slapo-syncprov mutex (ITS#6438) Fixed slapo-translucent entry leak (ITS#6746) Fixed contrib/autogroup LDAP URI with attribute filter (ITS#6536) Fixed contrib/autogroup install location (ITS#6684) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 4ccc01a92c..e21747dd17 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -785,7 +785,8 @@ syncprov_free_syncop( syncops *so ) GroupAssertion *ga, *gnext; ldap_pvt_thread_mutex_lock( &so->s_mutex ); - if ( --so->s_inuse > 0 ) { + /* already being freed, or still in use */ + if ( !so->s_inuse || --so->s_inuse > 0 ) { ldap_pvt_thread_mutex_unlock( &so->s_mutex ); return; }