Ecore con local: properly clean up fd on error.
authorTom Hacohen <tom@stosb.com>
Fri, 5 Feb 2016 11:48:36 +0000 (11:48 +0000)
committerTom Hacohen <tom@stosb.com>
Fri, 5 Feb 2016 11:48:36 +0000 (11:48 +0000)
commitd4bd7d70334baf2057b05e6f988103a295979673
tree9ccfcc17989a3bc8c888f63448ce55df7ae1143a
parentf05577c3ae72cb1f1a34be3793243a008cd8e1bb
Ecore con local: properly clean up fd on error.

This wasn't done correctly in the previous commit. First of all, the
order of cleanup was wrong, the cleanup area should only be called if
failures occurred after the fd allocation, not before. Also, fd should
be reinitialised to -1 once we close the socket.
src/lib/ecore_con/ecore_con_local.c