]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
improve logging of sendmsg order - we may be logging errors about invalid remote...
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 21 Mar 2014 21:55:20 +0000 (22:55 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 21 Mar 2014 21:55:20 +0000 (22:55 +0100)
pdns/nameserver.cc

index 7535ce4eb28cb28604cf3fc26f6829c14b23c867..1ec2eab0880bd9612d80edb80d2db5c1d1685432 100644 (file)
@@ -329,7 +329,7 @@ void UDPNameserver::send(DNSPacket *p)
     L<<Logger::Error<<"Weird, trying to send a message that needs truncation, "<< buffer.length()<<" > "<<p->getMaxReplyLen()<<endl;
   }
   if(sendmsg(p->getSocket(), &msgh, 0) < 0)
-    L<<Logger::Error<<"Error sending reply with sendmsg (socket="<<p->getSocket()<<"): "<<strerror(errno)<<endl;
+    L<<Logger::Error<<"Error sending reply with sendmsg (socket="<<p->getSocket()<<", dest="<<p->d_remote.toStringWithPort()<<"): "<<strerror(errno)<<endl;
 }
 
 static bool HarvestDestinationAddress(struct msghdr* msgh, ComboAddress* destination)