]> granicus.if.org Git - pdns/commitdiff
Initialize Netmask members
authorAki Tuomi <cmouse@desteem.org>
Tue, 29 Sep 2015 19:02:58 +0000 (22:02 +0300)
committerAki Tuomi <cmouse@desteem.org>
Sat, 3 Oct 2015 22:01:12 +0000 (01:01 +0300)
fix cid#1030032

pdns/iputils.hh

index 489bba0b525157fb703540af06db85907705be60..52e6fe3d8df8f2f4dce89264f5c8e54ff201730a 100644 (file)
@@ -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)