diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-17 15:53:18 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-17 15:53:18 +0000 |
commit | afaba09925bca2858d41fa9a6fc8c8c99c86bce4 (patch) | |
tree | ae48dd61cd13def820734b0cf646014dac0c649a /usr.sbin | |
parent | f2784f72dd492584d6b7e0667047ae3c37b8ee30 (diff) |
two more returns; open msg counter might have gotten increased too much
Diffstat (limited to 'usr.sbin')
-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 cf70fe3ec32..61d22f1f409 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.112 2004/02/17 15:47:24 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.113 2004/02/17 15:53:17 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -926,10 +926,12 @@ session_open(struct peer *p) log_peer_warn(&p->conf, "Write error"); buf_free(buf); bgp_fsm(p, EVNT_CON_FATAL); + return; } } else { buf_free(buf); bgp_fsm(p, EVNT_CON_FATAL); + return; } p->stats.msg_sent_open++; |