From: Pierangelo Masarati Date: Thu, 21 Apr 2005 00:47:50 +0000 (+0000) Subject: fix previous commit (was causing failure of test028) X-Git-Tag: OPENLDAP_AC_BP~862 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90b46ed93164bcc822a6d2272b2348d607474aca;p=openldap fix previous commit (was causing failure of test028) --- diff --git a/clients/tools/ldapwhoami.c b/clients/tools/ldapwhoami.c index 575e76a5d0..e97a8dca11 100644 --- a/clients/tools/ldapwhoami.c +++ b/clients/tools/ldapwhoami.c @@ -212,8 +212,8 @@ main( int argc, char *argv[] ) } } - if( verbose || ( rc != LDAP_SUCCESS ) || matcheddn || text || refs ) { - printf( _("Result: %s (%d)\n"), ldap_err2string( rc ), rc ); + if( verbose || ( code != LDAP_SUCCESS ) || matcheddn || text || refs ) { + printf( _("Result: %s (%d)\n"), ldap_err2string( code ), code ); if( text && *text ) { printf( _("Additional info: %s\n"), text ); @@ -242,5 +242,5 @@ skip: tool_unbind( ld ); tool_destroy(); - return rc == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE; + return code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE; }