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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user