From: Todd C. Miller Date: Wed, 27 Jan 2016 16:20:04 +0000 (-0700) Subject: Add missing return when user is not found in sudo_sss_result_get(). X-Git-Tag: SUDO_1_8_16^2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60ea106cc489e4dc360cd1aab8bd6abf1c133b69;p=sudo Add missing return when user is not found in sudo_sss_result_get(). Previously we fell through to the default case which just logged a debug message and returned so this just avoids the extra (generic) debug message. --- diff --git a/plugins/sudoers/sssd.c b/plugins/sudoers/sssd.c index 9c91722c2..9d353fd49 100644 --- a/plugins/sudoers/sssd.c +++ b/plugins/sudoers/sssd.c @@ -791,6 +791,7 @@ sudo_sss_result_get(struct sudo_nss *nss, struct passwd *pw, uint32_t *state) break; case ENOENT: sudo_debug_printf(SUDO_DEBUG_INFO, "The user was not found in SSSD."); + debug_return_ptr(NULL); default: sudo_debug_printf(SUDO_DEBUG_INFO, "sss_error=%u\n", sss_error); debug_return_ptr(NULL);