From: Kurt Zeilenga Date: Mon, 26 Aug 2002 18:06:55 +0000 (+0000) Subject: Prevent unlocking unlocked sasl_bindmutex... X-Git-Tag: NO_SLAP_OP_BLOCKS~1173 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af4cb85d8bd7415fe9eb956fea1a4edc312a1e1d;p=openldap Prevent unlocking unlocked sasl_bindmutex... --- diff --git a/servers/slapd/bind.c b/servers/slapd/bind.c index a62f6974f7..6e476a0526 100644 --- a/servers/slapd/bind.c +++ b/servers/slapd/bind.c @@ -574,8 +574,10 @@ do_bind( } cleanup: - conn->c_sasl_bindop = NULL; - ldap_pvt_thread_mutex_unlock( &conn->c_sasl_bindmutex ); + if( conn->c_sasl_bindop != NULL ) { + ldap_pvt_thread_mutex_unlock( &conn->c_sasl_bindmutex ); + conn->c_sasl_bindop = NULL; + } if( pdn.bv_val != NULL ) { free( pdn.bv_val );