From: Kurt Zeilenga Date: Sat, 29 Oct 2005 23:42:12 +0000 (+0000) Subject: Provide unique error message for ldap_parse_extended_result X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a654472f5c45effa54f2d23fe2fe72d363ef07e;p=openldap Provide unique error message for ldap_parse_extended_result --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 31556695c0..0acd9cdc13 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -345,7 +345,6 @@ main( int argc, char *argv[] ) rc = ldap_parse_result( ld, res, &code, &matcheddn, &text, &refs, NULL, 0 ); - if( rc != LDAP_SUCCESS ) { ldap_perror( ld, "ldap_parse_result" ); rc = EXIT_FAILURE; @@ -353,9 +352,8 @@ main( int argc, char *argv[] ) } rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 1 ); - if( rc != LDAP_SUCCESS ) { - ldap_perror( ld, "ldap_parse_result" ); + ldap_perror( ld, "ldap_parse_extended_result" ); rc = EXIT_FAILURE; goto done; }