]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dns.cpp
2.0.1 release
[user/henk/code/inspircd.git] / src / dns.cpp
index ef9ac12bf976d9dc8e9a92c16190379da47a77cc..945e1fb15c296577fce48a7c017fba18c0624f9d 100644 (file)
@@ -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());