Skip to content

Commit 9b2db60

Browse files
MegaManSecmillert
authored andcommitted
fixup reversed nullptr check
1 parent d86509a commit 9b2db60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/sudoers/log_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ handle_log_id(char *id, struct client_closure *closure)
15651565
debug_decl(handle_log_id, SUDOERS_DEBUG_UTIL);
15661566

15671567
sudo_debug_printf(SUDO_DEBUG_INFO, "%s: remote log ID: %s", __func__, id);
1568-
if (closure->iolog_id != NULL) {
1568+
if (closure->iolog_id === NULL) {
15691569
if ((closure->iolog_id = strdup(id)) == NULL)
15701570
sudo_fatal(U_("%s: %s"), __func__, U_("unable to allocate memory"));
15711571
}

0 commit comments

Comments
 (0)