From: Amos Jeffries Date: Tue, 24 Mar 2009 11:34:21 +0000 (+1300) Subject: Fix more typos in intercept X-Git-Tag: SQUID_3_2_0_1~1104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f24fa88d4d64b346d14bba396009ae6b2aea6931;p=thirdparty%2Fsquid.git Fix more typos in intercept --- diff --git a/src/ip/IpIntercept.cc b/src/ip/IpIntercept.cc index b4a352efc4..8f6365e435 100644 --- a/src/ip/IpIntercept.cc +++ b/src/ip/IpIntercept.cc @@ -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.