Howard convinced me that this version is slightly better.

back out previous commit.
This commit is contained in:
Kurt Zeilenga 1999-09-24 00:16:16 +00:00
parent a93ac070b5
commit a68825e6df

View File

@ -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;
}
/*