fix impossible possible segv
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 16 Dec 2011 18:06:19 +0000 (18:06 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 16 Dec 2011 18:06:19 +0000 (18:06 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66295 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_socks.c

index d44c1f5..6b484aa 100644 (file)
@@ -318,7 +318,7 @@ EAPI void
 ecore_con_socks4_lookup_set(Ecore_Con_Socks *ecs, Eina_Bool enable)
 {
    ECORE_CON_SOCKS_CAST_ELSE(ecs) return;
-   v4->lookup = !!enable;
+   if (v4) v4->lookup = !!enable;
 }
 
 /**