]> git.ipfire.org Git - thirdparty/squid.git/commit
WCCPv2: fix assertion 'Cannot convert non-IPv4 to IPv4' on FreeBSD
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 25 Dec 2013 21:34:33 +0000 (14:34 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 25 Dec 2013 21:34:33 +0000 (14:34 -0700)
commit940086932945dd471cadf89299413c57626092c3
treef929ee4580dd31b7b481c5ae64fb39de263a621d
parent4a31cfe2785e57e01d6616848d56cca2a622e350
WCCPv2: fix assertion 'Cannot convert non-IPv4 to IPv4' on FreeBSD

FreeBSD does not set the from-address on recv() if there was an error
reading the packet. This can result in Ip::Address assertion if the
error is not checked for before the IP address is mapped into Squid
internal format.
src/wccp2.cc