From ce3b12713be0c4a08bef37f8be0606306fd20371 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Aug 2025 20:08:01 +0200 Subject: [PATCH] nspawn: the second time on_orderly_shutdown() is called userdata is NULL (#38709) We know that it is, because we set it to NULL in the very same on_orderly_shutdown() call. --- src/nspawn/nspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index cbe75223e4..1142bc5745 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -2959,7 +2959,7 @@ static int wait_for_container(PidRef *pid, ContainerStatus *container) { } static int on_orderly_shutdown(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { - PidRef *pid = ASSERT_PTR(userdata); + PidRef *pid = userdata; assert(si);