forked from enlightenment/efl
ecore_con: Make sure host_server is not NUL before dereferencing
This was intended to get fixed in f53683f76a
CID 1232731
This commit is contained in:
parent
7d4c063fbb
commit
fdc8e455e4
|
@ -805,7 +805,7 @@ _ecore_con_client_ecore_con_base_send(Eo *obj EINA_UNUSED, Ecore_Con_Client_Data
|
||||||
cl->buf = eina_binbuf_new();
|
cl->buf = eina_binbuf_new();
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(cl->buf, 0);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(cl->buf, 0);
|
||||||
#ifdef TCP_CORK
|
#ifdef TCP_CORK
|
||||||
if ((cl->fd >= 0) && (host_server->type) &&
|
if ((cl->fd >= 0) && (host_server) &&
|
||||||
((host_server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_CORK))
|
((host_server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_CORK))
|
||||||
{
|
{
|
||||||
int state = 1;
|
int state = 1;
|
||||||
|
|
Loading…
Reference in New Issue