]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
when making a netmask from a comboaddress, we neglected to zero the port. This could... 5408/head
authorbert hubert <bert.hubert@powerdns.com>
Thu, 15 Jun 2017 01:14:01 +0000 (03:14 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Thu, 15 Jun 2017 01:14:01 +0000 (03:14 +0200)
pdns/iputils.hh

index 5c53fa6d95a28446cf35281020eafb4c2254271b..a4a4862c0a9db8cee8d78de469bc3e27627c08d6 100644 (file)
@@ -313,7 +313,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;