]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: the second time on_orderly_shutdown() is called userdata is NULL (#38709)
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Aug 2025 18:08:01 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Aug 2025 18:08:01 +0000 (19:08 +0100)
We know that it is, because we set it to NULL in the very same
on_orderly_shutdown() call.

src/nspawn/nspawn.c

index cbe75223e404f5ad8a9aed7793b184c112e19192..1142bc574588d9ee56bc92c73ba3713a33902c94 100644 (file)
@@ -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);