mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +08:00
Howard convinced me that this version is slightly better.
back out previous commit.
This commit is contained in:
parent
a93ac070b5
commit
a68825e6df
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user