mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +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. */
|
/* No need to check the admin flag file multiple times. */
|
||||||
if (ISSET(sudo_mode, MODE_POLICY_INTERCEPTED))
|
if (ISSET(sudo_mode, MODE_POLICY_INTERCEPTED))
|
||||||
def_admin_flag = false;
|
def_admin_flag = NULL;
|
||||||
|
|
||||||
debug_return_bool(true);
|
debug_return_bool(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user