From a68825e6df0d712f9c83cfc3c75186d7844256a9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 24 Sep 1999 00:16:16 +0000 Subject: [PATCH] Howard convinced me that this version is slightly better. back out previous commit. --- libraries/libldap/error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } /* -- 2.39.5