Permalink
Browse files

when making a netmask from a comboaddress, we neglected to zero the p…

…ort. This could lead to a proliferation of netmasks.

(cherry picked from commit 0bdabe9)
  • Loading branch information...
ahupowerdns authored and rgacogne committed Jun 15, 2017
1 parent 261591b commit b91dc6e92f013d2e0490e3234a415dbe85604b84
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/iputils.hh
View
@@ -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;

0 comments on commit b91dc6e

Please sign in to comment.