Updated Branches: refs/heads/master d13336e8e -> 925b7d72d
TS-1145: zero the whole IpEndpoint Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/925b7d72 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/925b7d72 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/925b7d72 Branch: refs/heads/master Commit: 925b7d72dba55b06ca1462c25ba4102fdb1b0b0e Parents: d13336e Author: James Peach <[email protected]> Authored: Sat Mar 17 08:04:50 2012 -0700 Committer: James Peach <[email protected]> Committed: Sat Mar 17 08:04:50 2012 -0700 ---------------------------------------------------------------------- lib/ts/ink_inet.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/925b7d72/lib/ts/ink_inet.h ---------------------------------------------------------------------- diff --git a/lib/ts/ink_inet.h b/lib/ts/ink_inet.h index afb268b..5219697 100644 --- a/lib/ts/ink_inet.h +++ b/lib/ts/ink_inet.h @@ -1150,7 +1150,7 @@ inline bool IpEndpoint::isIp6() const { return AF_INET6 == sa.sa_family; } inline IpEndpoint& IpEndpoint::setToAnyAddr(int family) { - ink_zero(sa); + ink_zero(*this); sa.sa_family = family; if (AF_INET == family) { sin.sin_addr.s_addr = INADDR_ANY; @@ -1168,7 +1168,7 @@ IpEndpoint::setToAnyAddr(int family) { inline IpEndpoint& IpEndpoint::setToLoopback(int family) { - ink_zero(sa); + ink_zero(*this); sa.sa_family = family; if (AF_INET == family) { sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
