diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c index 50ec9493e..2475ef281 100644 --- a/plugins/sudoers/auth/sudo_auth.c +++ b/plugins/sudoers/auth/sudo_auth.c @@ -315,7 +315,7 @@ verify_user(struct passwd *pw, char *prompt, int validated, /* Get the password unless the auth function will do it for us */ if (!standalone) { if (IS_NONINTERACTIVE(&auth_switch[0])) { - status = AUTH_NONINTERACTIVE; + success = AUTH_NONINTERACTIVE; goto done; } pass = auth_getpass(prompt, SUDO_CONV_PROMPT_ECHO_OFF, callback);