mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
I believe ldap_result2error should return the value returned
by ldap_parse_result unless that value is SUCCESS.
This commit is contained in:
parent
91e24173d0
commit
a93ac070b5
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user