From 2fd2d93c1d59a47de64f3fb8e234b649b5dd85a9 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 29 Sep 2015 22:02:58 +0300 Subject: [PATCH] Initialize Netmask members fix cid#1030032 --- pdns/iputils.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/iputils.hh b/pdns/iputils.hh index 489bba0b5..52e6fe3d8 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -235,6 +235,8 @@ public: Netmask() { d_network.sin4.sin_family=0; // disable this doing anything useful + d_mask=0; + d_bits=0; } Netmask(const ComboAddress& network, uint8_t bits=0xff) -- 2.40.0