X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=e086d78633f29af27e9334ed9ffd32e0097164fb;hp=7a2a8e7f8b20463aac07c40a744da91156022f3e;hb=18d1233c40a5705e9123edd6f4c6764a5178003b;hpb=24a2c7e51a0b080c4bdb55f697b3f0458ebc3fb1 diff --git a/src/net.c b/src/net.c index 7a2a8e7f..e086d786 100644 --- a/src/net.c +++ b/src/net.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.c,v 1.35.4.131 2001/09/24 14:12:00 guus Exp $ + $Id: net.c,v 1.35.4.133 2001/09/25 13:39:11 guus Exp $ */ #include "config.h" @@ -976,6 +976,8 @@ cp cp /* Done */ + myself->nexthop = myself; + myself->lastbutonehop = myself; myself->status.active = 1; id_add(myself); @@ -1003,7 +1005,7 @@ cp { if(setup_outgoing_connection(cfg->data.ptr)) /* function returns 0 when there are no problems */ retry = 1; - cfg = get_config_val(cfg, config_connectto); /* Or else we try the next ConnectTo line */ + cfg = get_config_val(cfg->next, config_connectto); /* Or else we try the next ConnectTo line */ } if(retry)