2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Avoid possible NULL deref found by clang analyzer.

This commit is contained in:
Todd C. Miller
2016-01-27 16:07:35 -07:00
parent 3d0b0f061e
commit 23a82ab2e8

View File

@@ -1238,8 +1238,7 @@ sudo_sss_display_cmnd(struct sudo_nss *nss, struct passwd *pw)
debug_decl(sudo_sss_display_cmnd, SUDOERS_DEBUG_SSSD);
if (handle == NULL)
goto done;
debug_return_int(-1);
if (sudo_sss_checkpw(nss, pw) != 0)
debug_return_int(-1);