cgrulesengd: Fixed closing of daemon sockets on error
cgrulesengd: Fixed closing of daemon sockets on error

When socket() fails, it returns -1 instead of file descriptor and we might pass
this -1 to close() in close_and_exit label -> unexpected result.

Signed-off-by: Jan Safranek <a7f4b96ffdd515ecef00f117294da18555749b0b@redhat.com>
Acked-by: Dhaval Giani <f48451d72a1ad74c777093928b661ad7099a85df@gmail.com>

rafalmiel/libcg,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,rafalmiel/libcg,jrfastab/Linux-cgdcbxd,rafalmiel/libcg,rafalmiel/libcg