From 7cb2946d60d862e98278eb50648cb31135d741f2 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 26 Jan 2013 05:31:33 +0000 Subject: [PATCH] Actually set the base addr in NetBlockIPv6Netmask. This is needed for proper copying of the scope_id. --- TargetGroup.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TargetGroup.cc b/TargetGroup.cc index 61826c7ca..303a36031 100644 --- a/TargetGroup.cc +++ b/TargetGroup.cc @@ -428,9 +428,10 @@ std::string NetBlockIPv4Ranges::str() const { void NetBlockIPv6Netmask::set_addr(const struct sockaddr_in6 *addr) { this->exhausted = false; - this->start = addr->sin6_addr; - this->cur = addr->sin6_addr; - this->end = addr->sin6_addr; + this->addr = *addr; + this->start = this->addr.sin6_addr; + this->cur = this->addr.sin6_addr; + this->end = this->addr.sin6_addr; } /* Get the sin6_scope_id member of a sockaddr_in6, based on a device name. This