summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-02-17 15:53:18 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-02-17 15:53:18 +0000
commitafaba09925bca2858d41fa9a6fc8c8c99c86bce4 (patch)
treeae48dd61cd13def820734b0cf646014dac0c649a /usr.sbin
parentf2784f72dd492584d6b7e0667047ae3c37b8ee30 (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.c4
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++;