From: Kurt Zeilenga Date: Fri, 24 Sep 1999 00:16:16 +0000 (+0000) Subject: Howard convinced me that this version is slightly better. X-Git-Tag: UCDATA_2_4~383 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a68825e6df0d712f9c83cfc3c75186d7844256a9;p=openldap Howard convinced me that this version is slightly better. back out previous commit. --- diff --git a/libraries/libldap/error.c b/libraries/libldap/error.c index 316bbaa8ed..379e673daf 100644 --- a/libraries/libldap/error.c +++ b/libraries/libldap/error.c @@ -160,6 +160,7 @@ ldap_perror( LDAP *ld, LDAP_CONST char *str ) fflush( stderr ); } +/* deprecated */ int ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit ) { @@ -168,7 +169,7 @@ ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit ) rc = ldap_parse_result( ld, r, &err, NULL, NULL, NULL, NULL, freeit ); - return rc != LDAP_SUCCESS ? rc : err; + return err != LDAP_SUCCESS ? err : rc; } /*