From 8431cd43b259f44b9b90d63a2f7cd2ee5ce40978 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 22 May 2021 14:59:54 +0200 Subject: [PATCH] Fix read-after-free --- src/modules/chathistory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/chathistory.c b/src/modules/chathistory.c index 43cb1bfeb..dc6831702 100644 --- a/src/modules/chathistory.c +++ b/src/modules/chathistory.c @@ -263,6 +263,7 @@ CMD_FUNC(cmd_chathistory) } limit = atoi(parv[4]); chathistory_targets(client, filter, limit); + goto end; } else { sendto_one(client, NULL, ":%s FAIL CHATHISTORY INVALID_PARAMS %s :Invalid subcommand", me.name, parv[1]); goto end;