ecore-con - fix explicit null dereference
fix CID 1232731
This commit is contained in:
parent
9de5c8131d
commit
f53683f76a
|
@ -760,7 +760,8 @@ _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 & ECORE_CON_TYPE) == ECORE_CON_REMOTE_CORK))
|
||||
if ((cl->fd >= 0) && (host_server->type) &&
|
||||
((host_server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_CORK))
|
||||
{
|
||||
int state = 1;
|
||||
if (setsockopt(cl->fd, IPPROTO_TCP, TCP_CORK, (char *)&state, sizeof(int)) < 0)
|
||||
|
|
Loading…
Reference in New Issue