From 2aa8530634af746291725020f16452fbf80b7126 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 24 Jul 2001 18:17:06 +0000 Subject: [PATCH] zero the SSLStateMachine in case of early error, else SSLStateMachine_free segvs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89680 13f79535-47bb-0310-9956-ffa450edef68 --- modules/tls/openssl_state_machine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/tls/openssl_state_machine.c b/modules/tls/openssl_state_machine.c index 0d7d5e0d86..d62e123660 100644 --- a/modules/tls/openssl_state_machine.c +++ b/modules/tls/openssl_state_machine.c @@ -138,6 +138,8 @@ SSLStateMachine *SSLStateMachine_new(const char *szCertificateFile, die_unless(pMachine); + memset(pMachine, '\0', sizeof *pMachine); + pMachine->pCtx=SSL_CTX_new(SSLv23_server_method()); die_unless(pMachine->pCtx); -- 2.40.0