summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2006-08-27 16:19:18 +0000
committerhenning <henning@openbsd.org>2006-08-27 16:19:18 +0000
commite20ccd63ef3a4670939e314ac7107bebf3734e1e (patch)
tree072dfe7e21e39fe0bba12af10927b53932918b6f
parentadd code to announce the restart capability according to (diff)
downloadwireguard-openbsd-e20ccd63ef3a4670939e314ac7107bebf3734e1e.tar.xz
wireguard-openbsd-e20ccd63ef3a4670939e314ac7107bebf3734e1e.zip
fix a small logic botch in session_accept() in the fast reconnect logic,
to check wether a session was put in IDLE manually by the operator or by bgpd itself as result of a fatal session error we were looking at the wrong timer, claudio ok
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 7b06191dcb1..6406a2a9205 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.260 2006/08/27 16:11:05 henning Exp $ */
+/* $OpenBSD: session.c,v 1.261 2006/08/27 16:19:18 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -965,7 +965,7 @@ session_accept(int listenfd)
p = getpeerbyip((struct sockaddr *)&cliaddr);
if (p != NULL && p->state == STATE_IDLE && p->errcnt < 2 &&
- p->ConnectRetryTimer > 0) {
+ p->IdleHoldTimer > 0) {
/* fast reconnect after clear */
p->passive = 1;
bgp_fsm(p, EVNT_START);