From a3f906a86e663f6595e7f49f2aea57cf50ba1998 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 16 Feb 2006 21:06:03 +0000 Subject: [PATCH] Sync with HEAD --- clients/tools/ldappasswd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2