summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index a39886ccb..953d28fcd 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -482,7 +482,7 @@ int doValidHost(const char *host, int type)
len = strlen(host);
- if (len > HOSTMAX) {
+ if (len > Config.HostLen) {
return 0;
}