From 9d33dab8867ecb4573cc6a4f68e1658b51f6e01b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 3 Apr 2006 02:33:55 +0000 Subject: Drop malformed dns names like a hot potato with maggots in git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3800 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dnsqueue.cpp') diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index f14fd8c04..20118038b 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -127,7 +127,7 @@ public: } if ((hostname != "") && (usr->registered != 7)) { - if (std::string((char*)inet_ntoa(usr->ip4)) == ip) + if ((std::string((char*)inet_ntoa(usr->ip4)) == ip) && (hostname.length() < 65)) { strlcpy(usr->host,hostname.c_str(),MAXBUF); strlcpy(usr->dhost,hostname.c_str(),MAXBUF); -- cgit v1.3.1-10-gc9f91