From: Kurt Zeilenga Date: Thu, 16 Feb 2006 21:06:03 +0000 (+0000) Subject: Sync with HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_3_20~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3f906a86e663f6595e7f49f2aea57cf50ba1998;p=openldap Sync with HEAD --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index c809520b96..468339fab4 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -411,7 +411,8 @@ main( int argc, char *argv[] ) done: /* disconnect from server */ - tool_unbind( ld ); + if ( ld ) + tool_unbind( ld ); tool_destroy(); return rc; }