ecore_con_legacy: fix coverity issues (use after free)

Summary: for hard failures (highly unlikely), the handle would be deleted and the next use would crash.

Test Plan: N/A

Reviewers: Jaehyun_Cho, zmike, cedric, bu5hm4n

Reviewed By: bu5hm4n

Subscribers: bu5hm4n, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7139
This commit is contained in:
junsu choi 2018-10-08 11:19:53 +09:00 committed by Jaehyun Cho
parent 347dc66ba9
commit ecc6fe749c
1 changed files with 2 additions and 2 deletions

View File

@ -1346,8 +1346,8 @@ _ecore_con_server_dialer_error(void *data, const Efl_Event *event)
WRN("error reaching server %s: %s", efl_net_dialer_address_dial_get(svr->dialer), eina_error_msg_get(*perr));
_ecore_con_post_event_server_error(svr, eina_error_msg_get(*perr));
_ecore_con_server_dialer_close(svr);
if (_ecore_con_post_event_server_error(svr, eina_error_msg_get(*perr)))
_ecore_con_server_dialer_close(svr);
}
static void