From a7bd528f61c8095c1136464819ab99dfb6f762d1 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Thu, 30 Jul 2020 19:58:35 +0100 Subject: [PATCH] extb_hostmask: handle banstr == NULL --- extensions/extb_hostmask.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/extb_hostmask.c b/extensions/extb_hostmask.c index 1100e88b..241ac1bb 100644 --- a/extensions/extb_hostmask.c +++ b/extensions/extb_hostmask.c @@ -32,5 +32,7 @@ _moddeinit(void) static int eb_hostmask(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type) { + if (banstr == NULL) + return EXTBAN_INVALID; return client_matches_mask(client_p, banstr) ? EXTBAN_MATCH : EXTBAN_NOMATCH; }