Browse Source

Do not crash when using Tunnel in an IPv6-enabled build

socket_connected() is also called on the tunnel pipe.

amends 3ceb55310.
wip/unchecked-remove
Caspar Schutijser 6 years ago committed by Oswald Buddenhagen
parent
commit
7607e53d56
  1. 6
      src/socket.c

6
src/socket.c

@ -545,8 +545,10 @@ static void
socket_connected( conn_t *conn ) socket_connected( conn_t *conn )
{ {
#ifdef HAVE_IPV6 #ifdef HAVE_IPV6
freeaddrinfo( conn->addrs ); if (conn->addrs) {
conn->addrs = 0; freeaddrinfo( conn->addrs );
conn->addrs = 0;
}
#endif #endif
conf_notifier( &conn->notify, 0, POLLIN ); conf_notifier( &conn->notify, 0, POLLIN );
socket_expect_read( conn, 0 ); socket_expect_read( conn, 0 );

Loading…
Cancel
Save