From: Howard Chu Date: Thu, 16 Feb 2006 08:21:02 +0000 (+0000) Subject: ITS#4403 don't unbind a NULL ld. X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05655a202c3de409b0174a101945597cc44e4022;p=openldap ITS#4403 don't unbind a NULL ld. --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index ca656b45a3..4390caaba2 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -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; }