]> granicus.if.org Git - apache/commitdiff
zero the SSLStateMachine in case of early error, else SSLStateMachine_free segvs
authorDoug MacEachern <dougm@apache.org>
Tue, 24 Jul 2001 18:17:06 +0000 (18:17 +0000)
committerDoug MacEachern <dougm@apache.org>
Tue, 24 Jul 2001 18:17:06 +0000 (18:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89680 13f79535-47bb-0310-9956-ffa450edef68

modules/tls/openssl_state_machine.c

index 0d7d5e0d869e9f0e4f2cbea26af527c0620582d0..d62e123660290cdbcaf1b86d9baa6fbd873b14a4 100644 (file)
@@ -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);