From: Kurt Zeilenga Date: Thu, 23 Sep 1999 22:57:05 +0000 (+0000) Subject: I believe ldap_result2error should return the value returned X-Git-Tag: UCDATA_2_4~384 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a93ac070b5db51af95f53be34768b31a56c18f86;p=openldap I believe ldap_result2error should return the value returned by ldap_parse_result unless that value is SUCCESS. --- diff --git a/libraries/libldap/error.c b/libraries/libldap/error.c index a248dde703..316bbaa8ed 100644 --- a/libraries/libldap/error.c +++ b/libraries/libldap/error.c @@ -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; } /*