Summary:
Coverity reports that 'svr' might be NULL here, so we should check it
is valid before trying to use it.
Fixes Coverity CID1396990
@fix
Depends on D8320
Reviewers: raster, cedric, q66, zmike, bu5hm4n, stefan
Reviewed By: cedric
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8321
efl_event_callback_array_del(inner_socket, _ecore_con_client_socket_ssl_cbs(), cl);
parent = efl_parent_get(cl->socket);
- if (parent && (parent != svr->server))
+ if (parent && svr && (parent != svr->server))
efl_del(cl->socket); /* we own it */
else
efl_unref(cl->socket);