]> granicus.if.org Git - sudo/commitdiff
Set args to NULL in default plugin info struct when there is no
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 14 Mar 2012 19:07:50 +0000 (15:07 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 14 Mar 2012 19:07:50 +0000 (15:07 -0400)
Plugin line in sudo.conf.

common/sudo_conf.c

index 3cdf9056ab69cceea95bc067f74c9a397b521cbc..dded1a80c5d71d1fd0c3eccca05fa33d0347582f 100644 (file)
@@ -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);