Quiet two PVS-studio warnings.

This commit is contained in:
Todd C. Miller
2022-01-05 11:04:18 -07:00
parent 1b72f138e3
commit 72989bf83f
2 changed files with 2 additions and 2 deletions

View File

@@ -253,7 +253,7 @@ log_server_accept(struct eventlog *evlog)
if (SLIST_EMPTY(&def_log_servers))
debug_return_bool(true);
if (ISSET(sudo_mode, MODE_POLICY_INTERCEPTED)) {
if (client_closure != NULL && ISSET(sudo_mode, MODE_POLICY_INTERCEPTED)) {
/* Older servers don't support multiple commands per session. */
if (!client_closure->subcommands)
debug_return_bool(true);