From: Remi Tricot-Le Breton Date: Mon, 13 Mar 2023 14:56:33 +0000 (+0100) Subject: BUG/MINOR: ssl: Fix double free in ocsp update deinit X-Git-Tag: v2.8-dev6~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f64a05979d1f744d1726755f4ee9adb5580adef7;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl: Fix double free in ocsp update deinit If the last update before a deinit happens was successful, the pointer to the httpclient in the ocsp update context was not reset while the httpclient instance was already destroyed. --- diff --git a/src/ssl_ocsp.c b/src/ssl_ocsp.c index c348681029..14fb7e9153 100644 --- a/src/ssl_ocsp.c +++ b/src/ssl_ocsp.c @@ -1273,6 +1273,7 @@ leave: } if (hc) httpclient_stop_and_destroy(hc); + ctx->hc = NULL; free_trash_chunk(req_url); free_trash_chunk(req_body); task->expire = tick_add(now_ms, next_wakeup);