From: Kurt Zeilenga Date: Thu, 12 Oct 2000 19:02:31 +0000 (+0000) Subject: Fix layer installation X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1772 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b285814f8e27bd6b74d76181ff36edbf61eb8d1d;p=openldap Fix layer installation --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 537f1741fa..b6fe4624bd 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -466,8 +466,6 @@ int slap_sasl_bind( realm ? realm : "", (unsigned long) ( ssf ? *ssf : 0 ) ); - *ssfp = ssf ? *ssf : 0; - rc = LDAP_SUCCESS; if( username == NULL || ( @@ -538,7 +536,9 @@ int slap_sasl_bind( } if( rc == LDAP_SUCCESS ) { - if( ssf ) { + *ssfp = ssf ? *ssf : 0; + + if( *ssfp ) { ldap_pvt_thread_mutex_lock( &conn->c_mutex ); conn->c_sasl_layers++; ldap_pvt_thread_mutex_unlock( &conn->c_mutex );