Signed-off-by: Ismo Puustinen <ismo.puusti...@intel.com> diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c index 367b898..d151efc 100644 --- a/src/daemon/cgrulesengd.c +++ b/src/daemon/cgrulesengd.c @@ -784,9 +784,9 @@ static int cgre_create_netlink_socket_process_msg(void) } close_and_exit: - if (sk_nl > 0) + if (sk_nl >= 0) close(sk_nl); - if (sk_unix > 0) + if (sk_unix >= 0) close(sk_unix); return rc; } -- 2.4.3
------------------------------------------------------------------------------ _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel