]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_init.c (ssl_init_ctx_cleanup_proxy): Unset
authorJoe Orton <jorton@apache.org>
Thu, 29 Jun 2006 10:33:18 +0000 (10:33 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 29 Jun 2006 10:33:18 +0000 (10:33 +0000)
pkp->certs pointer after freeing the array; fixes segfault at startup
if the certs are shared across >1 server_rec.

PR: 39915

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@417988 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_init.c

index 587f2856692849d66d095d5adab087ccf8d48528..12416cdbc4f7a0ef699ded23ad8114b8c5a6812f 100644 (file)
@@ -1229,6 +1229,7 @@ static void ssl_init_ctx_cleanup_proxy(modssl_ctx_t *mctx)
 
     if (mctx->pkp->certs) {
         sk_X509_INFO_pop_free(mctx->pkp->certs, X509_INFO_free);
+        mctx->pkp->certs = NULL;
     }
 }