From ff2de29c1eb1518ce97c236f9e74ffa247128da9 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Sun, 10 May 2020 12:58:26 +0000 Subject: [PATCH] mod_ssl: destroy temporary pool on stapling_renew_response() failure. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877549 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_util_stapling.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ssl/ssl_util_stapling.c b/modules/ssl/ssl_util_stapling.c index cb5084e966..a6ee6e8e6c 100644 --- a/modules/ssl/ssl_util_stapling.c +++ b/modules/ssl/ssl_util_stapling.c @@ -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; }