From f3daaba1c4f716220a58189b6bf210ea8ed57e3b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 19 Apr 2017 14:30:30 -0600 Subject: [PATCH] In sudo_sss_check_user() it is not possible for handle to be NULL. --- plugins/sudoers/sssd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/sssd.c b/plugins/sudoers/sssd.c index 6215581f9..1c174bfac 100644 --- a/plugins/sudoers/sssd.c +++ b/plugins/sudoers/sssd.c @@ -825,7 +825,7 @@ sudo_sss_check_user(struct sudo_sss_handle *handle, struct sss_sudo_rule *rule) int i, ret = false; debug_decl(sudo_sss_check_user, SUDOERS_DEBUG_SSSD); - if (!handle || !rule) + if (rule == NULL) debug_return_bool(false); switch (handle->fn_get_values(rule, "sudoUser", &val_array)) { -- 2.40.0