From: Todd C. Miller Date: Wed, 19 Apr 2017 20:30:30 +0000 (-0600) Subject: In sudo_sss_check_user() it is not possible for handle to be NULL. X-Git-Tag: SUDO_1_8_20^2~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3daaba1c4f716220a58189b6bf210ea8ed57e3b;p=sudo In sudo_sss_check_user() it is not possible for handle to be NULL. --- 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)) {