]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
bindbackend: fix zoneId in log statement 9315/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Thu, 9 Jul 2020 19:32:43 +0000 (21:32 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Thu, 9 Jul 2020 19:32:45 +0000 (21:32 +0200)
The existing message was confusing me because it showed invalid/not
initialized data.

modules/bindbackend/bindbackend2.cc

index 03e71e0fbaae1bff7ed126ca88fb4f9b2829bdb5..a882614323f73631d157710f3232744cb47ab6ac 100644 (file)
@@ -1150,7 +1150,7 @@ void Bind2Backend::lookup(const QType &qtype, const DNSName &qname, int zoneId,
 
   if(!found) {
     if(mustlog)
-      g_log<<Logger::Warning<<"Found no authoritative zone for '"<<qname<<"' and/or id "<<bbd.d_id<<endl;
+      g_log<<Logger::Warning<<"Found no authoritative zone for '"<<qname<<"' and/or id "<<zoneId<<endl;
     d_handle.d_list=false;
     return;
   }