From 647efa8b15714768fc7697d840a19000a45b716d Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 4 May 2016 19:10:47 +0200 Subject: [PATCH] make sure we zero out the anonymized IPv6 address. --- pdns/dnswasher.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.49.0