summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 15:08:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 15:08:52 +0000
commite505d47dc80f1eb302167c12618b170fcc0fd90c (patch)
tree26b2934547da259a67d40f5379cb813f9294370f /src/dns.cpp
parent821b8f555576af4f55b712bee5632f5cdbd9a16e (diff)
Fixes for inspsocket in ipv6 environment
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4615 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index b294c71bf..177d76890 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -711,7 +711,7 @@ bool DNS::ReverseLookup(const std::string &ip, bool ins)
if (ServerInstance && ServerInstance->stats)
ServerInstance->stats->statsDns++;
insp_inaddr binip;
- if (insp_aton(ip.c_str(), &binip))
+ if (insp_aton(ip.c_str(), &binip) < 0)
{
return false;
}