Ecore con local: properly clean up fd on error. 29/82229/2
authorTom Hacohen <tom@stosb.com>
Fri, 5 Feb 2016 11:48:36 +0000 (11:48 +0000)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 5 Aug 2016 04:51:10 +0000 (21:51 -0700)
commit921ea073c4f4731d69c64b132d213cc379242b6a
tree483e429363ab3fba99bba93fd01b72d7f8e009c2
parent260c77d95e31801c1dbd5fcf336e34f33b99e2d4
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.

Change-Id: I96edd3c4685300e4ec8e25e55aa8a17774700eb5
Signed-off-by: Awadhesh Singh <awadhesh1.s@samsung.com>
src/lib/ecore_con/ecore_con_local.c