]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3461: build regression in IPFilter NAT
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 7 Jan 2012 05:49:19 +0000 (22:49 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 7 Jan 2012 05:49:19 +0000 (22:49 -0700)
src/ip/Intercept.cc

index 30ebd5d9d591f329f1313dcc85cc24c3f0cb7580..7d470ba56b3df3b842247555cc331a9ca536b461 100644 (file)
@@ -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);