From 5a654472f5c45effa54f2d23fe2fe72d363ef07e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 29 Oct 2005 23:42:12 +0000 Subject: [PATCH] Provide unique error message for ldap_parse_extended_result --- clients/tools/ldappasswd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.39.5