From fea095dc50732b23988329b35edaef0cdf68a4ce Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 22 Sep 2022 14:21:14 -0700 Subject: [PATCH] Add notify module to logging list The notify module controls the logging settings for the notify socket code. While missing this doesn't cause any impact to the notify code, an invalid module name sent on the command socket could cause the daemon to crash with a NULL pointer access. --- daemon/x52d_command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/x52d_command.c b/daemon/x52d_command.c index cea2242..cd22de9 100644 --- a/daemon/x52d_command.c +++ b/daemon/x52d_command.c @@ -263,6 +263,7 @@ static void cmd_logging(char *buffer, int *buflen, int argc, char **argv) [X52D_MOD_MOUSE] = "mouse", [X52D_MOD_COMMAND] = "command", [X52D_MOD_CLIENT] = "client", + [X52D_MOD_NOTIFY] = "notify", }; // This corresponds to the levels in pinelog