]> git.sur5r.net Git - openldap/commitdiff
Fix layer installation
authorKurt Zeilenga <kurt@openldap.org>
Thu, 12 Oct 2000 19:02:31 +0000 (19:02 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 12 Oct 2000 19:02:31 +0000 (19:02 +0000)
servers/slapd/sasl.c

index 537f1741fa2b4fe73b98f603c3841cffba8bb398..b6fe4624bd873e822930ea301435d19f8bcb7f00 100644 (file)
@@ -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 );