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:
Stefan Schmidt 2014-09-04 10:57:19 +02:00
parent 7d4c063fbb
commit fdc8e455e4
1 changed files with 1 additions and 1 deletions

View File

@ -805,7 +805,7 @@ _ecore_con_client_ecore_con_base_send(Eo *obj EINA_UNUSED, Ecore_Con_Client_Data
cl->buf = eina_binbuf_new();
EINA_SAFETY_ON_NULL_RETURN_VAL(cl->buf, 0);
#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))
{
int state = 1;