Skip to content

Commit

Permalink
page-xfer: Argument cannot be negative (NEGATIVE_RETURNS)
Browse files Browse the repository at this point in the history
CID 73358 (#2 of 2): Argument cannot be negative (NEGATIVE_RETURNS)
 sk is passed to a parameter that cannot be negative.

Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Sep 28, 2020
1 parent df8df85 commit 60b7f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion criu/page-xfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,8 @@ int cr_page_server(bool daemon_mode, bool lazy_dump, int cfd)
return ret > 0 ? 0 : -1;

if (tls_x509_init(ask, true)) {
close(sk);
if (sk >= 0)
close(sk);
return -1;
}

Expand Down

0 comments on commit 60b7f70

Please sign in to comment.