From a93ac070b5db51af95f53be34768b31a56c18f86 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 23 Sep 1999 22:57:05 +0000 Subject: [PATCH] I believe ldap_result2error should return the value returned by ldap_parse_result unless that value is SUCCESS. --- libraries/libldap/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /* -- 2.39.5