Skip to content

Commit

Permalink
net: Argument cannot be negative (NEGATIVE_RETURNS)
Browse files Browse the repository at this point in the history
CID 178391 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
 sk is passed to a parameter that cannot be negative.

Signed-off-by: Adrian Reber <areber@redhat.com>
  • Loading branch information
adrianreber authored and avagin committed Oct 20, 2020
1 parent 4a77e04 commit 50dbcad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criu/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,7 @@ int dump_net_ns(struct ns_id *ns)
if (!ret)
ret = dump_links(sk, ns, fds);

close(sk);
close_safe(&sk);

if (!ret)
ret = dump_ifaddr(fds);
Expand Down

0 comments on commit 50dbcad

Please sign in to comment.