From 0bdabe94e6fd873455d34b88f8954d8cc6034a72 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 15 Jun 2017 03:14:01 +0200 Subject: [PATCH] when making a netmask from a comboaddress, we neglected to zero the port. This could lead to a proliferation of netmasks. --- pdns/iputils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/iputils.hh b/pdns/iputils.hh index 5c53fa6d95..a4a4862c0a 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -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; -- 2.47.2