ecore_con : Fix that null pointer access for segmentation fault

Summary:
"cl->svr" was to be null on line 281.
This problem occurred from 384f30c8ec.
Replacing "cl->svr" with "svr" corrects the error
while preserving the changes in 384f30c8ec.

Test Plan: N/A

Reviewers: #committers, cedric, Hermet, zmike

Subscribers: bowonryu, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6255
This commit is contained in:
junsu choi 2018-06-07 10:49:42 -04:00 committed by Mike Blumenkrantz
parent 475c93fd75
commit 4db762ee6c
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ _ecore_con_client_free(Ecore_Con_Client *cl)
efl_event_callback_array_del(inner_socket, _ecore_con_client_socket_ssl_cbs(), cl);
parent = efl_parent_get(cl->socket);
if (parent && (parent != cl->svr->server))
if (parent && (parent != svr->server))
efl_del(cl->socket); /* we own it */
else
efl_unref(cl->socket);