diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-03 21:19:28 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-03 21:19:28 +0000 |
commit | 661e2cccbaee3d3e1db858fbe2d901c8e0f79b36 (patch) | |
tree | c8c8ea6322de123b090804de452c67d6efa29d8b /src/dns.cpp | |
parent | 8a623fbec416116a746029d34c4584cd2ea30fff (diff) |
Extra debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4689 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r-- | src/dns.cpp | 6 |
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); |