From: Yu Watanabe Date: Fri, 20 Feb 2026 07:11:50 +0000 (+0900) Subject: import: fix NULL pointer dereference X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298fc566417ec4f4a7f4710a44c2499bd3578947;p=thirdparty%2Fsystemd.git import: fix NULL pointer dereference Follow-up for a9f6ba04969d6eb2e629e30299fab7538ef42a57. Fixes CID#1645106. --- diff --git a/src/import/pull-oci.c b/src/import/pull-oci.c index 39b9c6e7682..6ab58eb1ac0 100644 --- a/src/import/pull-oci.c +++ b/src/import/pull-oci.c @@ -101,7 +101,10 @@ static OciLayerState* oci_layer_state_free(OciLayerState *st) { pidref_done_sigkill_wait(&st->tar_pid); if (st->temp_path) { - import_remove_tree(st->temp_path, st->pull ? &st->pull->userns_fd : NULL, st->pull->flags); + import_remove_tree( + st->temp_path, + st->pull ? &st->pull->userns_fd : NULL, + st->pull ? st->pull->flags : 0); free(st->temp_path); } free(st->final_path);