From: Todd C. Miller Date: Wed, 14 Mar 2012 19:07:50 +0000 (-0400) Subject: Set args to NULL in default plugin info struct when there is no X-Git-Tag: SUDO_1_8_5~1^2~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83459e13b5bac2ffbba4defb1b9d5e7add33a322;p=sudo Set args to NULL in default plugin info struct when there is no Plugin line in sudo.conf. --- 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);