Commit 65e8eb7a authored by Kinsbursky Stanislav's avatar Kinsbursky Stanislav Committed by Cyrill Gorcunov

show: check UTS ns fd before show

Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent a0ec1002
......@@ -122,7 +122,8 @@ int try_show_namespaces(int ns_pid)
if (!fdset)
return -1;
show_utsns(fdset->fds[CR_FD_UTSNS]);
if (fdset->fds[CR_FD_UTSNS] != -1)
show_utsns(fdset->fds[CR_FD_UTSNS]);
close_cr_fdset(&fdset);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment