summaryrefslogtreecommitdiff
path: root/modules/tls
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@apache.org>2001-07-24 18:17:06 +0000
committerDoug MacEachern <dougm@apache.org>2001-07-24 18:17:06 +0000
commit2aa8530634af746291725020f16452fbf80b7126 (patch)
tree8027cfeec0792cb1276b462404e33f34d018aa5e /modules/tls
parentde06ddf627714f77386856a5e36e44570d1b604d (diff)
downloadhttpd-2aa8530634af746291725020f16452fbf80b7126.tar.gz
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
Diffstat (limited to 'modules/tls')
-rw-r--r--modules/tls/openssl_state_machine.c2
1 files changed, 2 insertions, 0 deletions
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);