From: Howard Chu Date: Sat, 15 Dec 2007 02:06:12 +0000 (+0000) Subject: ITS#5263 fix return code from parse_sasl_bind_result() X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~304 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f02d4814263891edae533ddf3fef9c16bcd58e6a;p=openldap ITS#5263 fix return code from parse_sasl_bind_result() --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 0b02065c35..c7b18ac91d 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -201,7 +201,7 @@ ldap_sasl_bind_s( rc = ldap_parse_sasl_bind_result( ld, result, &scredp, 0 ); } - if ( rc != LDAP_SUCCESS && rc != LDAP_SASL_BIND_IN_PROGRESS ) { + if ( rc != LDAP_SUCCESS ) { ldap_msgfree( result ); return( rc ); } @@ -347,7 +347,7 @@ ldap_parse_sasl_bind_result( ldap_msgfree( res ); } - return( ld->ld_errno ); + return( LDAP_SUCCESS ); } int