From: Doug MacEachern Date: Tue, 24 Jul 2001 18:17:06 +0000 (+0000) Subject: zero the SSLStateMachine in case of early error, else SSLStateMachine_free segvs X-Git-Tag: 2.0.22~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aa8530634af746291725020f16452fbf80b7126;p=apache 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 --- 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);