mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 01:59:04 +00:00
pid_ns: Close sk in case of pid_ns_helper_sock() fails
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
943424a281
commit
81097c837b
1 changed files with 1 additions and 0 deletions
|
|
@ -2581,6 +2581,7 @@ static int pid_ns_helper_sock(struct ns_id *ns)
|
|||
|
||||
if (bind(sk, (struct sockaddr *)&addr, len) < 0) {
|
||||
pr_perror("Can't bind pid_ns sock");
|
||||
close(sk);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue