summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bgpd/session.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index c974c452742..42008c85f53 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.388 2019/07/24 20:25:27 benno Exp $ */
+/* $OpenBSD: session.c,v 1.389 2019/08/12 14:15:27 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -385,18 +385,10 @@ session_main(int debug, int verbose)
bgp_fsm(p, EVNT_START);
break;
case Timer_IdleHoldReset:
- p->IdleHoldTime /= 2;
- if (p->IdleHoldTime <=
- INTERVAL_IDLE_HOLD_INITIAL) {
- p->IdleHoldTime =
- INTERVAL_IDLE_HOLD_INITIAL;
- timer_stop(p,
- Timer_IdleHoldReset);
- p->errcnt = 0;
- } else
- timer_set(p,
- Timer_IdleHoldReset,
- p->IdleHoldTime);
+ p->IdleHoldTime =
+ INTERVAL_IDLE_HOLD_INITIAL;
+ p->errcnt = 0;
+ timer_stop(p, Timer_IdleHoldReset);
break;
case Timer_CarpUndemote:
timer_stop(p, Timer_CarpUndemote);