]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5390: Non-POD SquidConfig::ssl_client::sslContext exit crash (#1952)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sat, 30 Nov 2024 03:04:33 +0000 (03:04 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 1 Dec 2024 00:35:27 +0000 (00:35 +0000)
commitc565067bf2ddf3ce88ed27d71d1d8816ee03047e
tree29825a7158b3ec3676f1873ac4fa0ae970f815c5
parentee9899320abfe596fdb6f5589a9fce5814d3a455
Bug 5390: Non-POD SquidConfig::ssl_client::sslContext exit crash (#1952)

Squid may crash when the SquidConfig global is auto-destructed after
main() ends. Since SquidConfig global is used by cleanup code, we should
keep its fields alive, essentially emulating "No New Globals" policy
effects. This surgical fix will be followed up with more changes to
address general OpenSSL cleanup problems exposed by this bug.

This bug fix facilitates backporting by using FuturePeerContext shim.
src/SquidConfig.h
src/cache_cf.cc