forked from enlightenment/efl
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:
parent
347dc66ba9
commit
ecc6fe749c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue