diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-18 00:30:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-18 00:30:10 +0000 |
commit | 2cf5953c4c39928cd296131abe9e64b909546da3 (patch) | |
tree | dd09f020341896ee1f45dd6681177586d9da6b46 /usr.sbin | |
parent | f230ff896bbcde9afa5aa6ac9d5f110eb76fc66e (diff) |
fix thinko in the revents & (POLLIN|POLLOUT) case
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/session.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index c930bd823af..0f2665bef51 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.117 2004/02/17 23:55:11 henning Exp $ */ +/* $OpenBSD: session.c,v 1.118 2004/02/18 00:30:09 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1080,10 +1080,11 @@ session_dispatch_msg(struct pollfd *pfd, struct peer *p) if (error) errno = error; log_peer_warn(&p->conf, "socket error"); + bgp_fsm(p, EVNT_CON_OPENFAIL); + return (1); } - bgp_fsm(p, EVNT_CON_OPENFAIL); - } else - bgp_fsm(p, EVNT_CON_OPEN); + } + bgp_fsm(p, EVNT_CON_OPEN); return (1); } if (pfd->revents & POLLHUP) { |