From: Yann Ylavic Date: Sun, 10 May 2020 12:58:26 +0000 (+0000) Subject: mod_ssl: destroy temporary pool on stapling_renew_response() failure. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff2de29c1eb1518ce97c236f9e74ffa247128da9;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/ssl/ssl_util_stapling.c b/modules/ssl/ssl_util_stapling.c index cb5084e9665..a6ee6e8e6c3 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; }