From 05655a202c3de409b0174a101945597cc44e4022 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 16 Feb 2006 08:21:02 +0000 Subject: [PATCH] ITS#4403 don't unbind a NULL ld. --- 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 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; } -- 2.39.5