fix segv
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 27 Jan 2011 03:23:05 +0000 (03:23 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 27 Jan 2011 03:23:05 +0000 (03:23 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@56314 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 1402557..f58f5f1 100644 (file)
@@ -1494,6 +1494,8 @@ _ecore_con_cb_tcp_connect(void           *data,
    if (!net_info)
      goto error;
 
+   if (!svr) return;
+
    svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
                     net_info->info.ai_protocol);
    if (svr->fd < 0)