From b91dc6e92f013d2e0490e3234a415dbe85604b84 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. (cherry picked from commit 0bdabe94e6fd873455d34b88f8954d8cc6034a72) --- pdns/iputils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/iputils.hh b/pdns/iputils.hh index db2f0bd71..9a2414fc1 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.40.0