diff options
| author | 2006-04-03 02:33:55 +0000 | |
|---|---|---|
| committer | 2006-04-03 02:33:55 +0000 | |
| commit | 9d33dab8867ecb4573cc6a4f68e1658b51f6e01b (patch) | |
| tree | c3d35477cf0e129e39ce8fe090401a6ecfffeeaf /src/dnsqueue.cpp | |
| parent | Backport of stability fix for 'connection refused' on autoconnect/connect (diff) | |
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
Diffstat (limited to 'src/dnsqueue.cpp')
| -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); |
