Commit 7dc930c9 authored by Andrei Vagin's avatar Andrei Vagin

sk-unix: don't pass a negative value to close()

CID 190174 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
6. negative_returns: fd is passed to a parameter that cannot be negative.
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 26359e75
...@@ -217,7 +217,7 @@ int kerndat_socket_unix_file(void) ...@@ -217,7 +217,7 @@ int kerndat_socket_unix_file(void)
return 0; return 0;
} }
close(sk); close(sk);
close(fd); close_safe(&fd);
kdat.sk_unix_file = true; kdat.sk_unix_file = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment