Always return ld->ld_errno thru *errcodep if given to ldap_parse_result

This commit is contained in:
Howard Chu 1999-10-08 00:51:35 +00:00
parent a517e5b969
commit 70f31490a8

View File

@ -325,10 +325,10 @@ ldap_parse_result(
}
/* return */
if( errcodep != NULL ) {
*errcodep = ld->ld_errno;
}
if ( errcode == LDAP_SUCCESS ) {
if( errcodep != NULL ) {
*errcodep = ld->ld_errno;
}
if( matcheddnp != NULL ) {
*matcheddnp = LDAP_STRDUP( ld->ld_matched );
}