summaryrefslogtreecommitdiff
path: root/src/operserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/operserv.c')
-rw-r--r--src/operserv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/operserv.c b/src/operserv.c
index 6e2e7ce33..74a2377dc 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -809,6 +809,14 @@ int add_akill(User * u, char *mask, const char *by, const time_t expires,
*host = 0;
host++;
+ if (!*host)
+ {
+ if (u)
+ notice_lang(s_OperServ, u, BAD_USERHOST_MASK);
+ free(mask2);
+ return -1;
+ }
+
entry = scalloc(sizeof(Akill), 1);
if (!entry) {