summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
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;
}