mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
core: fix segfault in compile_bind_mounts() when BindPaths= or BindReadOnlyPaths= is set
This fixes a bug introduced by 6c47cd7d3b
.
Fixes #7055.
This commit is contained in:
parent
dcfaecc70a
commit
a8cabc612b
@ -2161,7 +2161,7 @@ static int compile_bind_mounts(
|
|||||||
if (!bind_mounts)
|
if (!bind_mounts)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
for (i = 0; context->n_bind_mounts; i++) {
|
for (i = 0; i < context->n_bind_mounts; i++) {
|
||||||
BindMount *item = context->bind_mounts + i;
|
BindMount *item = context->bind_mounts + i;
|
||||||
char *s, *d;
|
char *s, *d;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user