From 3e96a57f91dd2ac666a3bee330e875218c8ddf5f Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Sun, 2 Aug 2009 23:08:09 +0000
Subject: [PATCH] Minor cleanup

---
 libraries/libldap/tls_m.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c
index 05e8648739..55b35ec7e7 100644
--- a/libraries/libldap/tls_m.c
+++ b/libraries/libldap/tls_m.c
@@ -1204,9 +1204,7 @@ tlsm_ctx_new ( struct ldapoptions *lo )
 		ctx->tc_model = NULL;
 		memset(&ctx->tc_callonce, 0, sizeof(ctx->tc_callonce));
 		ctx->tc_require_cert = lo->ldo_tls_require_cert;
-	} else {
-		LDAP_FREE( ctx );
-		ctx = NULL;
+		ctx->tc_verify_cert = PR_FALSE;
 	}
 	return (tls_ctx *)ctx;
 }
-- 
GitLab