fix segv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 27 Jan 2011 03:23:05 +0000 (03:23 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 27 Jan 2011 03:23:05 +0000 (03:23 +0000)
SVN revision: 56314

legacy/ecore/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)