summaryrefslogtreecommitdiff
path: root/src/s_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_user.c')
-rw-r--r--src/s_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s_user.c b/src/s_user.c
index b2c7911..ddcfa83 100644
--- a/src/s_user.c
+++ b/src/s_user.c
@@ -658,7 +658,7 @@ valid_hostname(const char *hostname)
if (!IsHostChar(*p))
return 0;
- return 1;
+ return p - hostname <= HOSTLEN;
}
/* valid_username()