Browse Source

don't crash when dns lookup fails (ipv6 path)

we call socket_connect_bail() when getaddrinfo() failed, so it must deal
with no addrinfo being there yet.
1.2
Oswald Buddenhagen 9 years ago
parent
commit
89dc7592ee
  1. 5
      src/socket.c

5
src/socket.c

@ -520,7 +520,10 @@ static void
socket_connect_bail( conn_t *conn )
{
#ifdef HAVE_IPV6
freeaddrinfo( conn->addrs );
if (conn->addrs) {
freeaddrinfo( conn->addrs );
conn->addrs = 0;
}
#endif
free( conn->name );
conn->name = 0;

Loading…
Cancel
Save