From 12258ab798fac6e14826242b7735878c50e84513 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 16 Mar 2004 03:54:09 +0000 Subject: [PATCH] Fix prev commit --- clients/tools/common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); + } } } } -- 2.39.5