]> git.sur5r.net Git - openldap/commitdiff
Minor cleanup
authorHoward Chu <hyc@openldap.org>
Fri, 31 Jul 2009 03:26:03 +0000 (03:26 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 31 Jul 2009 03:26:03 +0000 (03:26 +0000)
libraries/libldap/tls_m.c

index 05e8648739d55fc1c1bad74a828f02079bd2a7b0..55b35ec7e7b9f723d231c09a75ef1fa43bda8e48 100644 (file)
@@ -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;
 }