diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-07 11:52:40 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-07 11:56:13 +0100 |
commit | e3790c148072b32891e5bfa4ee71418f275d67bd (patch) | |
tree | 3d1df268ebd01efed1295876cd8da15db09a840a /src/core/socket.c | |
parent | 05e88628069fe33c2f2a729ac66a1f9e57928256 (diff) | |
download | systemd-e3790c148072b32891e5bfa4ee71418f275d67bd.tar.gz |
core: fix netns/ipcns socket confusion
Fixup for a70581ffb5c13c91c76ff73ba6f5f3ff59c5a915. Coverity CID#1448383.
Diffstat (limited to 'src/core/socket.c')
-rw-r--r-- | src/core/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 2aba8bff1c..016986401b 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1555,7 +1555,7 @@ static int socket_address_listen_in_cgroup( if (s->exec_context.ipc_namespace_path && s->exec_runtime && s->exec_runtime->ipcns_storage_socket[0] >= 0) { - r = open_shareable_ns_path(s->exec_runtime->netns_storage_socket, s->exec_context.network_namespace_path, CLONE_NEWIPC); + r = open_shareable_ns_path(s->exec_runtime->ipcns_storage_socket, s->exec_context.ipc_namespace_path, CLONE_NEWIPC); if (r < 0) return log_unit_error_errno(UNIT(s), r, "Failed to open IPC namespace path %s: %m", s->exec_context.ipc_namespace_path); } |