From 878902761767e865855d304c00823ecea9eb2444 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sat, 6 Apr 2019 21:52:49 +0300 Subject: [PATCH] Add missing NULL check in mask_match() Fixes #902 --- src/core/masks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/masks.c b/src/core/masks.c index cc28b3bf..dc0064a9 100644 --- a/src/core/masks.c +++ b/src/core/masks.c @@ -68,7 +68,7 @@ int mask_match(SERVER_REC *server, const char *mask, g_return_val_if_fail(server == NULL || IS_SERVER(server), FALSE); g_return_val_if_fail(mask != NULL && nick != NULL && - nick != NULL && host != NULL, FALSE); + user != NULL && host != NULL, FALSE); str = !check_address(mask, &wildcards) ? (char *) nick : g_strdup_printf("%s!%s@%s", nick, user, host);