]> git.sur5r.net Git - openldap/commitdiff
Prevent unlocking unlocked sasl_bindmutex...
authorKurt Zeilenga <kurt@openldap.org>
Mon, 26 Aug 2002 18:06:55 +0000 (18:06 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 26 Aug 2002 18:06:55 +0000 (18:06 +0000)
servers/slapd/bind.c

index a62f6974f775707b727375c3a25b7fed7e071eb1..6e476a052662a28a0826235e993dcd0c0b08356a 100644 (file)
@@ -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 );