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

index 38d741eae92b958446fc444add36f45875216908..302220613fa4b05e4d56ed9671be7d93e037c2ab 100644 (file)
@@ -454,8 +454,6 @@ int slap_sasl_bind(
                                realm ? realm : "",
                                (unsigned long) ( ssf ? *ssf : 0 ) );
 
-                       *ssfp = ssf ? *ssf : 0;
-
                        rc = LDAP_SUCCESS;
 
                        if( username == NULL || (
@@ -493,7 +491,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 );