From b285814f8e27bd6b74d76181ff36edbf61eb8d1d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 12 Oct 2000 19:02:31 +0000 Subject: [PATCH] Fix layer installation --- servers/slapd/sasl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.39.5