diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-08-27 16:19:19 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-08-27 16:19:19 +0000 |
commit | 345981f565775da2d945967209d779e430988c37 (patch) | |
tree | 88e071cac7b6e9a6f57ac93c8f90c99afe181dac /usr.sbin/bgpd/session.c | |
parent | 99348aefaa5e0101b26e62b555e715736475d570 (diff) |
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
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
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); |