summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-06-07 10:49:42 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-07 10:49:42 -0400
commit4db762ee6cdb48e6d05c3670a7a5cc4f82996f99 (patch)
tree76c08f5b4850c19c098279d9872bbd66e32b2abf /src/lib/ecore_con
parent475c93fd7599badad0c073e5eb025b92481b53ec (diff)
ecore_con : Fix that null pointer access for segmentation fault
Summary: "cl->svr" was to be null on line 281. This problem occurred from 384f30c8ecc9. Replacing "cl->svr" with "svr" corrects the error while preserving the changes in 384f30c8ecc9. Test Plan: N/A Reviewers: #committers, cedric, Hermet, zmike Subscribers: bowonryu, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6255
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_con/ecore_con_legacy.c b/src/lib/ecore_con/ecore_con_legacy.c
index 243a213..067cf71 100644
--- a/src/lib/ecore_con/ecore_con_legacy.c
+++ b/src/lib/ecore_con/ecore_con_legacy.c
@@ -293,7 +293,7 @@ _ecore_con_client_free(Ecore_Con_Client *cl)
293 efl_event_callback_array_del(inner_socket, _ecore_con_client_socket_ssl_cbs(), cl); 293 efl_event_callback_array_del(inner_socket, _ecore_con_client_socket_ssl_cbs(), cl);
294 294
295 parent = efl_parent_get(cl->socket); 295 parent = efl_parent_get(cl->socket);
296 if (parent && (parent != cl->svr->server)) 296 if (parent && (parent != svr->server))
297 efl_del(cl->socket); /* we own it */ 297 efl_del(cl->socket); /* we own it */
298 else 298 else
299 efl_unref(cl->socket); 299 efl_unref(cl->socket);