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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=647efa8b15714768fc7697d840a19000a45b716d;p=pdns make sure we zero out the anonymized IPv6 address. --- diff --git a/pdns/dnswasher.cc b/pdns/dnswasher.cc index e224dbe82..ef18b6f56 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; }