diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-03 02:34:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-03 02:34:50 +0000 |
commit | 0c63269d544170d497cc96b311027df4242f41c7 (patch) | |
tree | 26c92841ba9800a1cbfe26581a4bbf19b5286cfb | |
parent | c8cf429f7b011769f36fa3db21ef1d19b2b419ac (diff) |
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
-rw-r--r-- | src/dnsqueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |