diff options
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); |