From: Howard Chu Date: Fri, 8 Oct 1999 00:51:35 +0000 (+0000) Subject: Always return ld->ld_errno thru *errcodep if given to ldap_parse_result X-Git-Tag: UCDATA_2_4~348 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70f31490a8f0dad91d706d1fa749ef4fb7946828;p=openldap Always return ld->ld_errno thru *errcodep if given to ldap_parse_result --- diff --git a/libraries/libldap/error.c b/libraries/libldap/error.c index 379e673daf..d1fefd66df 100644 --- a/libraries/libldap/error.c +++ b/libraries/libldap/error.c @@ -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 ); }