mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix cred passing.
This commit is contained in:
parent
f9411ca154
commit
0d6e1a4cbe
@ -198,12 +198,14 @@ ldap_sasl_bind_s(
|
||||
|
||||
rc = ldap_result2error( ld, result, 1 );
|
||||
|
||||
if ( rc != LDAP_SUCCESS && rc != LDAP_SASL_BIND_IN_PROGRESS ) {
|
||||
if ( rc == LDAP_SUCCESS || rc == LDAP_SASL_BIND_IN_PROGRESS ) {
|
||||
if( servercredp != NULL ) {
|
||||
*servercredp = scredp;
|
||||
scredp = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
} else if (scredp != NULL ) {
|
||||
if ( scredp != NULL ) {
|
||||
ber_bvfree(scredp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user