Skip to content
Snippets Groups Projects
Commit 0d6e1a4c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix cred passing.

parent f9411ca1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment