2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Disable admin_flag by setting to NULL, not false.

Found by cppcheck.
This commit is contained in:
Todd C. Miller
2022-10-20 13:45:36 -06:00
parent 3a6083f043
commit 9b9404b6fa

View File

@@ -188,7 +188,7 @@ sudoers_reinit_defaults(void)
/* No need to check the admin flag file multiple times. */
if (ISSET(sudo_mode, MODE_POLICY_INTERCEPTED))
def_admin_flag = false;
def_admin_flag = NULL;
debug_return_bool(true);
}