From 661e2cccbaee3d3e1db858fbe2d901c8e0f79b36 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 21:19:28 +0000 Subject: Extra debug git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4689 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dns.cpp b/src/dns.cpp index ea88c21bc..6d624c181 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -515,8 +515,11 @@ DNSResult DNS::GetResult() /* Did we get the whole header? */ if (length < 12) + { /* Nope - something screwed up. */ + log(DEBUG,"Whole header not read!"); return std::make_pair(-1,""); + } /* Check wether the reply came from a different DNS * server to the one we sent it to, or the source-port @@ -536,7 +539,10 @@ DNSResult DNS::GetResult() #endif if ((port_from != DNS::QUERY_PORT) || (strcasecmp(ipaddr_from, Config->DNSServer))) + { + log(DEBUG,"port %d is not 53, or %s is not %s",port_from, ipaddr_from, Config->DNSServer); return std::make_pair(-1,""); + } /* Put the read header info into a header class */ DNS::FillHeader(&header,buffer,length - 12); -- cgit v1.2.3