]> git.sur5r.net Git - openldap/commitdiff
ITS#5263 fix return code from parse_sasl_bind_result()
authorHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2007 02:06:12 +0000 (02:06 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2007 02:06:12 +0000 (02:06 +0000)
libraries/libldap/sasl.c

index 0b02065c351ca20ab5ba957ea184efb17123744d..c7b18ac91dd5a7f633a4e1924e40426ce3c1be2c 100644 (file)
@@ -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