From 0c63269d544170d497cc96b311027df4242f41c7 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 3 Apr 2006 02:34:50 +0000 Subject: Copy of 1_0_stable fix for malformed (>64 chars) hostnames. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3801 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.2.3