raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f53683f76a8325f964051a4acfa2c74e460d5d8f

commit f53683f76a8325f964051a4acfa2c74e460d5d8f
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Aug 27 17:16:17 2014 +0900

    ecore-con - fix explicit null dereference
    
    fix CID 1232731
---
 src/lib/ecore_con/ecore_con.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index d9237ec..14db253 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -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)

-- 


Reply via email to