]> git.sur5r.net Git - openldap/commitdiff
ITS#4403 don't unbind a NULL ld.
authorHoward Chu <hyc@openldap.org>
Thu, 16 Feb 2006 08:21:02 +0000 (08:21 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Feb 2006 08:21:02 +0000 (08:21 +0000)
clients/tools/ldappasswd.c

index ca656b45a36467d2126bda3907094bc33cec8e50..4390caaba264cd729d56af36bd0a27910885b775 100644 (file)
@@ -415,7 +415,8 @@ main( int argc, char *argv[] )
 
 done:
        /* disconnect from server */
-       tool_unbind( ld ); 
+       if ( ld )
+               tool_unbind( ld ); 
        tool_destroy();
        return rc;
 }