diff options
author | 2004-12-07 17:19:09 +0000 | |
---|---|---|
committer | 2004-12-07 17:19:09 +0000 | |
commit | 23a29aca4d7692642034ef79a10973ee066ca146 (patch) | |
tree | d20bf82b825ed09951207cc820bda58a4da8b1db | |
parent | less whitespace, more pretty. ok jfb (diff) | |
download | wireguard-openbsd-23a29aca4d7692642034ef79a10973ee066ca146.tar.xz wireguard-openbsd-23a29aca4d7692642034ef79a10973ee066ca146.zip |
oups, little FSM error: when we're in CONNECT and get an CON_OPEN event
initialize and start the holdtimer, just like when we're in state ACTIVE.
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 80a6ad2ba67..e881f05c45a 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.208 2004/11/23 13:07:01 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.209 2004/12/07 17:19:09 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -606,6 +606,8 @@ bgp_fsm(struct peer *peer, enum session_events event) session_tcp_established(peer); session_open(peer); peer->ConnectRetryTimer = 0; + peer->holdtime = INTERVAL_HOLD_INITIAL; + start_timer_holdtime(peer); change_state(peer, STATE_OPENSENT, event); break; case EVNT_CON_OPENFAIL: |