Commit 15058157 authored by Pavel Emelyanov's avatar Pavel Emelyanov

sk: Fix check for whether or not to restore namespace in collect_sockets

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1f0f2cb9
......@@ -521,7 +521,7 @@ int collect_sockets(int pid)
close(nl);
out:
if (rst > 0 && restore_ns(rst, &net_ns_desc) < 0)
if (rst >= 0 && restore_ns(rst, &net_ns_desc) < 0)
err = -1;
return err;
}
......
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