]> git.ipfire.org Git - thirdparty/squid.git/commit
Ftp::Gateway may segfault in level-3 double-complete debugs() (#1923)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Mon, 28 Oct 2024 09:51:42 +0000 (09:51 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 29 Oct 2024 06:13:35 +0000 (06:13 +0000)
commit797039bb0f5e738afc3943299d22ea6cfb3c0a2e
tree1434f6153c07790ea43fbbf00d1c245a70047baa
parent240efcbb6656f89edb88811daeda71af4062c6af
Ftp::Gateway may segfault in level-3 double-complete debugs() (#1923)

Ftp::Gateway::completeForwarding() must check data.conn pointer before
dereferencing it. Long-term, we should improve Comm::ConnectionPointer
printing to safely report Connection::id (where available). This minimal
fix just mimics existing Ftp::Relay::abortOnData() solution.
src/clients/FtpGateway.cc