From 83459e13b5bac2ffbba4defb1b9d5e7add33a322 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 14 Mar 2012 15:07:50 -0400 Subject: [PATCH] Set args to NULL in default plugin info struct when there is no Plugin line in sudo.conf. --- common/sudo_conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/sudo_conf.c b/common/sudo_conf.c index 3cdf9056a..dded1a80c 100644 --- a/common/sudo_conf.c +++ b/common/sudo_conf.c @@ -353,6 +353,7 @@ done: info = emalloc(sizeof(*info)); info->symbol_name = "sudoers_policy"; info->path = SUDOERS_PLUGIN; + info->args = NULL; info->prev = info; info->next = NULL; tq_append(&sudo_conf_data.plugins, info); @@ -361,6 +362,7 @@ done: info = emalloc(sizeof(*info)); info->symbol_name = "sudoers_io"; info->path = SUDOERS_PLUGIN; + info->args = NULL; info->prev = info; info->next = NULL; tq_append(&sudo_conf_data.plugins, info); -- 2.40.0