I believe ldap_result2error should return the value returned

by ldap_parse_result unless that value is SUCCESS.
This commit is contained in:
Kurt Zeilenga 1999-09-23 22:57:05 +00:00
parent 91e24173d0
commit a93ac070b5

View File

@ -168,7 +168,7 @@ ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit )
rc = ldap_parse_result( ld, r, &err,
NULL, NULL, NULL, NULL, freeit );
return err != LDAP_SUCCESS ? err : rc;
return rc != LDAP_SUCCESS ? rc : err;
}
/*