]> granicus.if.org Git - pdns/commitdiff
auth: Make sure hadFileDirective is initialized in BindDomainInfo
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2017 09:14:00 +0000 (11:14 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2017 09:14:00 +0000 (11:14 +0200)
It should be initialized after BindParser::commit() has been called,
but let's make sure it still is if this function is not called.
Reported by Coverity.

pdns/bindparserclasses.hh

index b8a3caa231d7b311ad8c1e529ea12a3be13e6ca7..33f7c6187795bf65f4198e54579603ddd710ed60 100644 (file)
@@ -33,7 +33,7 @@
 class BindDomainInfo 
 {
 public:
-  BindDomainInfo() : d_dev(0), d_ino(0)
+  BindDomainInfo() : hadFileDirective(false), d_dev(0), d_ino(0)
   {}
 
   void clear()