]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_ssl: destroy temporary pool on stapling_renew_response() failure.
authorYann Ylavic <ylavic@apache.org>
Sun, 10 May 2020 12:58:26 +0000 (12:58 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 10 May 2020 12:58:26 +0000 (12:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877549 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_stapling.c

index cb5084e9665d4ff132e97d5c6b48f620dfc29cb5..a6ee6e8e6c3871a3a953bbb9526369dc5316ded8 100644 (file)
@@ -521,11 +521,13 @@ static BOOL stapling_renew_response(server_rec *s, modssl_ctx_t *mctx, SSL *ssl,
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(01939)
                      "stapling_renew_response: Error parsing uri %s",
                       ocspuri);
+        apr_pool_destroy(vpool);
         goto err;
     }
     else if (strcmp(uri.scheme, "http")) {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, APLOGNO(01940)
                      "stapling_renew_response: Unsupported uri %s", ocspuri);
+        apr_pool_destroy(vpool);
         goto err;
     }