summaryrefslogtreecommitdiffstats
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-04-26 19:08:39 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:43 -0400
commitcbc069badae76e616aa8fd8d8b733cfe2a4e6c4c (patch)
tree69f683b4eea667f65d5c75474c4438153db93c77 /src/dns.cpp
parentAdd debug output for received DNS packets (diff)
downloadinspircd++-cbc069badae76e616aa8fd8d8b733cfe2a4e6c4c.tar.gz
inspircd++-cbc069badae76e616aa8fd8d8b733cfe2a4e6c4c.tar.bz2
inspircd++-cbc069badae76e616aa8fd8d8b733cfe2a4e6c4c.zip
Define comparator for irc::sockets::sockaddrs
This only compares IP/port, which ignores IPv6 flow information and scope ID, which aren't important in testing for equality.
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 ef9ac12bf..945e1fb15 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -578,7 +578,7 @@ DNSResult DNS::GetResult()
*
* -- Thanks jilles for pointing this one out.
*/
- if (memcmp(&from, &myserver, sizeof(irc::sockets::sockaddrs)))
+ if (from != myserver)
{
ServerInstance->Logs->Log("RESOLVER",DEBUG,"Got a result from the wrong server! Bad NAT or DNS forging attempt? '%s' != '%s'",
from.str().c_str(), myserver.str().c_str());