diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index 05e8648739d55fc1c1bad74a828f02079bd2a7b0..55b35ec7e7b9f723d231c09a75ef1fa43bda8e48 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; }