From: Howard Chu Date: Tue, 16 Mar 2004 03:54:09 +0000 (+0000) Subject: Fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~280 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12258ab798fac6e14826242b7735878c50e84513;p=openldap Fix prev commit --- diff --git a/clients/tools/common.c b/clients/tools/common.c index bb71c2ab5f..5226bfad81 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -837,7 +837,9 @@ tool_bind( LDAP *ld ) if ( err != LDAP_SUCCESS || msgbuf[0] ) { fprintf( stderr, "ldap_bind: %s%s\n", ldap_err2string( err ), msgbuf ); - exit( EXIT_FAILURE ); + if ( err != LDAP_SUCCESS ) { + exit( EXIT_FAILURE ); + } } } }