X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_setup.c;h=aa5b669e07d5bb4a991fc3fc0a48fdb99db48a1e;hp=d2a60f0245f324fdbe6f83aaa3e495b1fa4e08fc;hb=940fcb6701d055f49530f12c93371f0280efce80;hpb=116ba3b3da73fb857cf75b5c92c6aacd70d94dd9 diff --git a/src/net_setup.c b/src/net_setup.c index d2a60f02..aa5b669e 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_setup.c,v 1.1.2.17 2002/06/08 12:57:10 guus Exp $ + $Id: net_setup.c,v 1.1.2.19 2002/06/13 16:12:40 guus Exp $ */ #include "config.h" @@ -26,6 +26,9 @@ #include #include #include +#ifdef HAVE_NETINET_IN_SYSTM_H + #include +#endif #ifdef HAVE_NETINET_IP_H #include #endif @@ -481,6 +484,8 @@ cp return -1; } + listen_sockets = 0; + for(aip = ai; aip; aip = aip->ai_next) { if((listen_socket[listen_sockets].tcp = setup_listen_socket((sockaddr_t *)aip->ai_addr)) < 0)