]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Always initialize the BindBackend's transaction ID
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 29 May 2019 12:34:48 +0000 (14:34 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 29 May 2019 12:53:49 +0000 (14:53 +0200)
Reported by Coverity (CID 1401661).

modules/bindbackend/bindbackend2.cc

index f513addfbcaa574ef3ebe53dce72bd086f662b9c..ee3ffffdfe740f41d90c07d7b27e7e910adf3c50 100644 (file)
@@ -631,6 +631,7 @@ Bind2Backend::Bind2Backend(const string &suffix, bool loadZones)
   setArgPrefix("bind"+suffix);
   d_logprefix="[bind"+suffix+"backend]";
   d_hybrid=mustDo("hybrid");
+  d_transaction_id=0;
   s_ignore_broken_records=mustDo("ignore-broken-records");
 
   if (!loadZones && d_hybrid)
@@ -638,7 +639,6 @@ Bind2Backend::Bind2Backend(const string &suffix, bool loadZones)
 
   Lock l(&s_startup_lock);
   
-  d_transaction_id=0;
   setupDNSSEC();
   if(!s_first) {
     return;