From: Amos Jeffries Date: Sat, 7 Jan 2012 05:49:19 +0000 (-0700) Subject: Bug 3461: build regression in IPFilter NAT X-Git-Tag: SQUID_3_2_0_15~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60e32662f7b87e899f223da03feb6cd71418c9fd;p=thirdparty%2Fsquid.git Bug 3461: build regression in IPFilter NAT --- diff --git a/src/ip/Intercept.cc b/src/ip/Intercept.cc index 30ebd5d9d5..7d470ba56b 100644 --- a/src/ip/Intercept.cc +++ b/src/ip/Intercept.cc @@ -189,7 +189,7 @@ Ip::Intercept::IpfInterception(const Comm::ConnectionPointer &newConn, int silen int x; // all fields must be set to 0 - memset(natLookup, 0, sizeof(natLookup)); + memset(&natLookup, 0, sizeof(natLookup)); // for NAT lookup set local and remote IP:port's natLookup.nl_inport = htons(newConn->local.GetPort()); newConn->local.GetInAddr(natLookup.nl_inip);