]> git.sur5r.net Git - openldap/commitdiff
Provide unique error message for ldap_parse_extended_result
authorKurt Zeilenga <kurt@openldap.org>
Sat, 29 Oct 2005 23:42:12 +0000 (23:42 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 29 Oct 2005 23:42:12 +0000 (23:42 +0000)
clients/tools/ldappasswd.c

index 31556695c0f310e4bbeeb7a6566bfc41ff59d7ec..0acd9cdc13122a2f5e47cb83563755a54e920132 100644 (file)
@@ -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;
        }