From 0aedc965f88a08912eae945cd6cb15ca4f8faae2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 25 Aug 2021 13:11:57 -0600 Subject: [PATCH] command_matches: avoid printf("%s") of NULL in debug for sudo ALL. --- plugins/sudoers/match_command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/match_command.c b/plugins/sudoers/match_command.c index 27b9ca946..6d8b3a65c 100644 --- a/plugins/sudoers/match_command.c +++ b/plugins/sudoers/match_command.c @@ -719,6 +719,7 @@ command_matches(const char *sudoers_cmnd, const char *sudoers_args, } if (sudoers_cmnd == NULL) { + sudoers_cmnd = "ALL"; rc = command_matches_all(runchroot, intercepted, digests); goto done; }