From: bert hubert Date: Wed, 4 May 2016 17:10:47 +0000 (+0200) Subject: make sure we zero out the anonymized IPv6 address. X-Git-Tag: rec-4.0.0-alpha3~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3813%2Fhead;p=thirdparty%2Fpdns.git make sure we zero out the anonymized IPv6 address. --- diff --git a/pdns/dnswasher.cc b/pdns/dnswasher.cc index e224dbe82c..ef18b6f564 100644 --- a/pdns/dnswasher.cc +++ b/pdns/dnswasher.cc @@ -48,7 +48,9 @@ public: val=d_ip6map[orig]=d_counter++; } struct in6_addr ret; + val=htonl(val); + memset(&ret, 0, sizeof(ret)); memcpy(((char*)&ret)+12, &val, 4); return ret; }