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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user