summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 21:19:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 21:19:28 +0000
commit661e2cccbaee3d3e1db858fbe2d901c8e0f79b36 (patch)
treec8c8ea6322de123b090804de452c67d6efa29d8b /src
parent8a623fbec416116a746029d34c4584cd2ea30fff (diff)
Extra debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4689 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp6
1 files changed, 6 insertions, 0 deletions
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);