forked from enlightenment/efl
correctly handle resolver failures during connection, should fix super long-standing bug which caused crashes when no network connection was present
SVN revision: 73141
This commit is contained in:
parent
e02f746b90
commit
9409b232ed
|
@ -1432,7 +1432,10 @@ _ecore_con_cb_tcp_listen(void *data,
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (!net_info) /* error message has already been handled */
|
if (!net_info) /* error message has already been handled */
|
||||||
|
{
|
||||||
|
svr->delete_me = EINA_TRUE;
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
||||||
net_info->info.ai_protocol);
|
net_info->info.ai_protocol);
|
||||||
|
@ -1499,7 +1502,10 @@ _ecore_con_cb_udp_listen(void *data,
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (!net_info) /* error message has already been handled */
|
if (!net_info) /* error message has already been handled */
|
||||||
|
{
|
||||||
|
svr->delete_me = EINA_TRUE;
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
||||||
net_info->info.ai_protocol);
|
net_info->info.ai_protocol);
|
||||||
|
@ -1572,7 +1578,10 @@ _ecore_con_cb_tcp_connect(void *data,
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (!net_info) /* error message has already been handled */
|
if (!net_info) /* error message has already been handled */
|
||||||
|
{
|
||||||
|
svr->delete_me = EINA_TRUE;
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
||||||
net_info->info.ai_protocol);
|
net_info->info.ai_protocol);
|
||||||
|
@ -1662,7 +1671,10 @@ _ecore_con_cb_udp_connect(void *data,
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (!net_info) /* error message has already been handled */
|
if (!net_info) /* error message has already been handled */
|
||||||
|
{
|
||||||
|
svr->delete_me = EINA_TRUE;
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
svr->fd = socket(net_info->info.ai_family, net_info->info.ai_socktype,
|
||||||
net_info->info.ai_protocol);
|
net_info->info.ai_protocol);
|
||||||
|
|
Loading…
Reference in New Issue