mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
Fix up SASL interact error checking
This commit is contained in:
parent
1228f6defc
commit
5c10406b9e
1 changed files with 7 additions and 3 deletions
|
|
@ -340,6 +340,9 @@ sasl_err2ldap( int saslerr )
|
|||
case SASL_CONTINUE:
|
||||
rc = LDAP_MORE_RESULTS_TO_RETURN;
|
||||
break;
|
||||
case SASL_INTERACT:
|
||||
rc = LDAP_LOCAL_ERROR;
|
||||
break;
|
||||
case SASL_OK:
|
||||
rc = LDAP_SUCCESS;
|
||||
break;
|
||||
|
|
@ -528,9 +531,10 @@ ldap_int_sasl_bind(
|
|||
}
|
||||
|
||||
if( saslrc == SASL_INTERACT ) {
|
||||
int res;
|
||||
if( !interact ) break;
|
||||
rc = (interact)( ld, flags, defaults, prompts );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
res = (interact)( ld, flags, defaults, prompts );
|
||||
if( res != LDAP_SUCCESS ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -578,7 +582,7 @@ ldap_int_sasl_bind(
|
|||
if( saslrc == SASL_INTERACT ) {
|
||||
int res;
|
||||
if( !interact ) break;
|
||||
rc = (interact)( ld, flags, defaults, prompts );
|
||||
res = (interact)( ld, flags, defaults, prompts );
|
||||
if( res != LDAP_SUCCESS ) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue