]> granicus.if.org Git - pdns/commitdiff
make sure we zero out the anonymized IPv6 address.
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 4 May 2016 17:10:47 +0000 (19:10 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 4 May 2016 17:10:47 +0000 (19:10 +0200)
pdns/dnswasher.cc

index e224dbe82c287ce74f1d7b295077ff3698c33565..ef18b6f56474cebb888a1db5d533e683fc2e07dc 100644 (file)
@@ -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;
   }