]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix more typos in intercept
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 24 Mar 2009 11:34:21 +0000 (00:34 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 24 Mar 2009 11:34:21 +0000 (00:34 +1300)
src/ip/IpIntercept.cc

index b4a352efc4ccf83d6cef512b74c23f74c2dfafc4..8f6365e435f0713d07d9420669f8a76528d787d0 100644 (file)
@@ -223,7 +223,7 @@ IpIntercept::IpfInterception(int fd, const IpAddress &me, IpAddress &dst, int si
     natLookup.nl_inport = htons(me.GetPort());
     natLookup.nl_outport = htons(dst.GetPort());
     me.GetInAddr(natLookup.nl_inip);
-    peer.GetInAddr(natLookup.nl_outip);
+    dst.GetInAddr(natLookup.nl_outip);
     natLookup.nl_flags = IPN_TCP;
 
     if (natfd < 0) {
@@ -279,8 +279,8 @@ IpIntercept::IpfInterception(int fd, const IpAddress &me, IpAddress &dst, int si
         return -1;
     } else {
         if (me != natLookup.nl_realip) {
-            client = natLookup.nl_realip;
-            client.SetPort(ntohs(natLookup.nl_realport));
+            me = natLookup.nl_realip;
+            me.SetPort(ntohs(natLookup.nl_realport));
         }
         // else. we already copied it.