From f272711c4011f7ee942ce9b91bbcafe90851d229 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Mon, 28 Sep 2020 10:47:31 +0000 Subject: [PATCH] page-xfer: Argument cannot be negative (NEGATIVE_RETURNS) 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 --- criu/page-xfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/page-xfer.c b/criu/page-xfer.c index db8e5bec21..98e9c6b6e1 100644 --- a/criu/page-xfer.c +++ b/criu/page-xfer.c @@ -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; }