mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-02 06:43:00 +00:00
net: Fix links collection retcode
There's a
if (bad_thing) {
ret = -1;
break;
}
code above this hunk, whose intention is to propagate -1 back to
caller. This propagation is obviously broken.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
7d5ac8338d
commit
181ea542e3
1 changed files with 1 additions and 1 deletions
|
|
@ -1560,7 +1560,7 @@ static int read_links(struct ns_id *ns)
|
|||
}
|
||||
close_image(img);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int restore_link(int nlsk, struct ns_id *ns, struct net_link *link)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue