mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 21:50:49 -05:00
We need to set sasl_layers prior to returning result...
This commit is contained in:
parent
a912e6eea0
commit
27b30275a6
2 changed files with 6 additions and 1 deletions
|
|
@ -223,7 +223,6 @@ do_bind(
|
|||
conn->c_authmech = conn->c_sasl_bind_mech;
|
||||
conn->c_sasl_bind_mech = NULL;
|
||||
conn->c_sasl_bind_in_progress = 0;
|
||||
if( ssf ) conn->c_sasl_layers++;
|
||||
conn->c_sasl_ssf = ssf;
|
||||
if( ssf > conn->c_ssf ) {
|
||||
conn->c_ssf = ssf;
|
||||
|
|
|
|||
|
|
@ -538,6 +538,12 @@ int slap_sasl_bind(
|
|||
}
|
||||
|
||||
if( rc == LDAP_SUCCESS ) {
|
||||
if( ssf ) {
|
||||
ldap_pvt_thread_mutex_lock( &conn->c_mutex );
|
||||
conn->c_sasl_layers++;
|
||||
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
|
||||
}
|
||||
|
||||
send_ldap_sasl( conn, op, rc,
|
||||
NULL, NULL, NULL, NULL,
|
||||
response.bv_len ? &response : NULL );
|
||||
|
|
|
|||
Loading…
Reference in a new issue