Hi,

There is a small typo in nameserver.cc debuging code. Compiler exits
with error since DNSPacket does not have a "remote" attribute defined.
Only seen when compiling with VERBOSELOG defined.

A patch attached.

-- 
Vytautas Krakauskas
diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc
index d6319e1..f50ec48 100644
--- a/pdns/nameserver.cc
+++ b/pdns/nameserver.cc
@@ -179,7 +179,7 @@ UDPNameserver::UDPNameserver()
 void UDPNameserver::send(DNSPacket *p)
 {
   const string& buffer=p->getString();
-  DLOG(L<<Logger::Notice<<"Sending a packet to "<< p->remote.toString() <<" ("<< buffer.length()<<" octets)"<<endl);
+  DLOG(L<<Logger::Notice<<"Sending a packet to "<< p->d_remote.toString() <<" ("<< buffer.length()<<" octets)"<<endl);
   if(buffer.length() > p->getMaxReplyLen()) {
     cerr<<"Weird, trying to send a message that needs truncation, "<< buffer.length()<<" > "<<p->getMaxReplyLen()<<endl;
   }
_______________________________________________
Pdns-dev mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-dev

Reply via email to