diff --git a/plugins/sudoers/toke.c b/plugins/sudoers/toke.c index a0307d3749..544fdfe88b 100644 --- a/plugins/sudoers/toke.c +++ b/plugins/sudoers/toke.c @@ -3882,7 +3882,7 @@ YY_RULE_SETUP BEGIN INITIAL; continued = false; if (sudoers_strict()) { - if (!sudo_regex_compile(NULL, sudoerstext, + if (!sudo_regex_compile(NULL, sudoerslval.command.args, &sudoers_errstr)) { LEXTRACE("ERROR "); return ERROR; diff --git a/plugins/sudoers/toke.l b/plugins/sudoers/toke.l index a98e6db5db..250fea7e8c 100644 --- a/plugins/sudoers/toke.l +++ b/plugins/sudoers/toke.l @@ -305,7 +305,7 @@ DEFVAR [a-z_]+ BEGIN INITIAL; continued = false; if (sudoers_strict()) { - if (!sudo_regex_compile(NULL, sudoerstext, + if (!sudo_regex_compile(NULL, sudoerslval.command.args, &sudoers_errstr)) { LEXTRACE("ERROR "); return ERROR;