From: Amos Jeffries Date: Sun, 25 Dec 2011 04:40:36 +0000 (-0700) Subject: Bug 3461: build regression in IPFilter NAT X-Git-Tag: BumpSslServerFirst.take05~12^2~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcfb239f04cd553ff1ce5b2767afcb3921ce69da;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);