fix really really hard-to-trigger magic failure in ecore-con
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 Jul 2012 10:30:31 +0000 (10:30 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 Jul 2012 10:30:31 +0000 (10:30 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@73918 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 062f8b3..3ecc4b7 100644 (file)
@@ -2302,6 +2302,7 @@ _ecore_con_client_flush(Ecore_Con_Client *cl)
 
    if (!count)
      {
+        if (!cl->buf) return;
         num = eina_binbuf_length_get(cl->buf) - cl->buf_offset;
         if (num <= 0) return;
         if (!(cl->host_server->type & ECORE_CON_SSL) || (!cl->upgrade))