From 181ea542e33391049e68890ecacda2af02c5d799 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Fri, 16 Jun 2017 18:19:19 +0300 Subject: [PATCH] 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 Signed-off-by: Andrei Vagin --- criu/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/net.c b/criu/net.c index c0271bee0..0cd5e38f0 100644 --- a/criu/net.c +++ b/criu/net.c @@ -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)