[squid-dev] [PATCH] Avoid memory leaks when a certificate validator is used with SslBump

Christos Tsantilas christos at chtsanti.net
Thu Dec 10 15:09:55 UTC 2015


When a certificate validator was used, sslCrtvdHandleReplyWrapper 
delivered validator response directly to the Ssl::PeerConnector job 
using job's Ssl::CertValidationHelper::CVHCB callback. If that 
synchronous call happened to be the last job call, then 
Ssl::PeerConnector::done() would become true for the job, as it should, 
but nobody would notice that the PeerConnector job object should be 
deleted, and the object would leak.

This fix converts CVHCB into an async job call to avoid direct, 
unprotected job calls in this context.

This is a Measurement Factory project.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: High_Memory_Usage_in_Squid-trunk-t3.patch
Type: text/x-patch
Size: 21785 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20151210/331bcbc2/attachment.bin>


More information about the squid-dev mailing list