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 <areber@redhat.com>
  • Loading branch information
adrianreber authored and avagin committed Oct 12, 2020
1 parent 642b242 commit f272711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion criu/page-xfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ 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);
close_safe(&sk);
return -1;
}

Expand Down

0 comments on commit f272711

Please sign in to comment.