From 70f31490a8f0dad91d706d1fa749ef4fb7946828 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 8 Oct 1999 00:51:35 +0000 Subject: [PATCH] Always return ld->ld_errno thru *errcodep if given to ldap_parse_result --- libraries/libldap/error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } -- 2.39.5