]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
when making a netmask from a comboaddress, we neglected to zero the port. This could...
authorbert hubert <bert.hubert@powerdns.com>
Thu, 15 Jun 2017 01:14:01 +0000 (03:14 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 7 Nov 2017 20:25:41 +0000 (21:25 +0100)
(cherry picked from commit 0bdabe94e6fd873455d34b88f8954d8cc6034a72)

pdns/iputils.hh

index 683d9e9bfb1d6dbabea2695e84db1d7adc22b360..aa28887c3a0abbd40947e60785413fd93f0e4522 100644 (file)
@@ -314,7 +314,7 @@ public:
   Netmask(const ComboAddress& network, uint8_t bits=0xff)
   {
     d_network = network;
-    
+    d_network.sin4.sin_port=0;
     if(bits > 128)
       bits = (network.sin4.sin_family == AF_INET) ? 32 : 128;