]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 16 Mar 2004 03:54:09 +0000 (03:54 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 16 Mar 2004 03:54:09 +0000 (03:54 +0000)
clients/tools/common.c

index bb71c2ab5f686f847fef7c0066d6c1e7e646084c..5226bfad8195fbbf1a83bae2befe5466846434c8 100644 (file)
@@ -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 );
+                       }
                }
        }
 }