summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-10-08 11:19:53 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-10-08 11:19:53 +0900
commitecc6fe749ca094274a751577add91388ec2ff52d (patch)
tree9add4c73dfa6f9fc7ff299b5ff0b29fb5161a470 /src/lib/ecore_con
parent347dc66ba9c841f5e1dfda778ea79757acbdd621 (diff)
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
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/ecore_con_legacy.c b/src/lib/ecore_con/ecore_con_legacy.c
index bd199a8278..94ff9bbd6e 100644
--- a/src/lib/ecore_con/ecore_con_legacy.c
+++ b/src/lib/ecore_con/ecore_con_legacy.c
@@ -1346,8 +1346,8 @@ _ecore_con_server_dialer_error(void *data, const Efl_Event *event)
1346 1346
1347 WRN("error reaching server %s: %s", efl_net_dialer_address_dial_get(svr->dialer), eina_error_msg_get(*perr)); 1347 WRN("error reaching server %s: %s", efl_net_dialer_address_dial_get(svr->dialer), eina_error_msg_get(*perr));
1348 1348
1349 _ecore_con_post_event_server_error(svr, eina_error_msg_get(*perr)); 1349 if (_ecore_con_post_event_server_error(svr, eina_error_msg_get(*perr)))
1350 _ecore_con_server_dialer_close(svr); 1350 _ecore_con_server_dialer_close(svr);
1351} 1351}
1352 1352
1353static void 1353static void