Quiet two PVS-studio warnings.
This commit is contained in:
@@ -253,7 +253,7 @@ log_server_accept(struct eventlog *evlog)
|
|||||||
if (SLIST_EMPTY(&def_log_servers))
|
if (SLIST_EMPTY(&def_log_servers))
|
||||||
debug_return_bool(true);
|
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. */
|
/* Older servers don't support multiple commands per session. */
|
||||||
if (!client_closure->subcommands)
|
if (!client_closure->subcommands)
|
||||||
debug_return_bool(true);
|
debug_return_bool(true);
|
||||||
|
@@ -314,7 +314,7 @@ verify_user(struct passwd *pw, char *prompt, int validated,
|
|||||||
|
|
||||||
/* Get the password unless the auth function will do it for us */
|
/* Get the password unless the auth function will do it for us */
|
||||||
if (!standalone) {
|
if (!standalone) {
|
||||||
if (IS_NONINTERACTIVE(auth_switch)) {
|
if (IS_NONINTERACTIVE(&auth_switch[0])) {
|
||||||
status = AUTH_NONINTERACTIVE;
|
status = AUTH_NONINTERACTIVE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user