mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-19 13:23:44 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue