summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/hs_request.c2
-rw-r--r--version.log3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 24c208951..e8572b703 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -204,7 +204,7 @@ int hs_do_request(User * u)
return MOD_CONT;
}
}
- if (strlen(rawhostmask) < HOSTMAX - 1) {
+ if (strlen(rawhostmask) < HOSTMAX) {
snprintf(hostmask, HOSTMAX, "%s", rawhostmask);
} else {
notice_lang(s_HostServ, u, HOST_SET_TOOLONG, HOSTMAX);
diff --git a/version.log b/version.log
index c6ecf2ff1..bbff8aaa6 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,11 @@ VERSION_MAJOR="1"
VERSION_MINOR="8"
VERSION_PATCH="3"
VERSION_EXTRA="-svn"
-VERSION_BUILD="2808"
+VERSION_BUILD="2809"
# $Log$ # Changes since 1.8.3 Release
+#Revision 2809 - Fixed bug #1138 - Fix maximum hostname length checking in hs_request
#Revision 2808 - Fixed check_ban to apply bans even if TTB was changed after the user has been kicked
#Revision 2807 - Added support for tracking permanent channels
#Revision 2801 - Fixed some memory leaks in ns_register