summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_server_unix.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-09 17:25:27 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-09 17:25:27 -0200
commit21617f83c2f4a3ce29712930cd482e461369953c (patch)
tree0498ce45ab1d2eb4de2933ff0e7731b55463e3ee /src/lib/ecore_con/efl_net_server_unix.c
parent441b303783ba4943ebe67a158fe26fcb2ed1dd9a (diff)
efl_net_server_unix: fix invalid socket comparison.
Fixes CID 1365321.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_con/efl_net_server_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_con/efl_net_server_unix.c b/src/lib/ecore_con/efl_net_server_unix.c
index 29d83168d7..70ca83aeb7 100644
--- a/src/lib/ecore_con/efl_net_server_unix.c
+++ b/src/lib/ecore_con/efl_net_server_unix.c
@@ -155,7 +155,7 @@ _efl_net_server_unix_bind_job(void *data, const Efl_Event *event EINA_UNUSED)
155 if (err) 155 if (err)
156 { 156 {
157 efl_event_callback_call(o, EFL_NET_SERVER_EVENT_ERROR, &err); 157 efl_event_callback_call(o, EFL_NET_SERVER_EVENT_ERROR, &err);
158 if (fd) closesocket(fd); 158 if (fd != INVALID_SOCKET) closesocket(fd);
159 efl_loop_fd_set(o, INVALID_SOCKET); 159 efl_loop_fd_set(o, INVALID_SOCKET);
160 } 160 }
161 161