summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bgpd/session.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 0a61325dc73..4beadcaa934 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.162 2004/04/29 19:56:04 deraadt Exp $ */
+/* $OpenBSD: session.c,v 1.163 2004/05/06 09:11:18 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1137,6 +1137,9 @@ session_update(u_int32_t peerid, void *data, size_t datalen)
return;
}
+ if (p->state != STATE_ESTABLISHED)
+ return;
+
len = MSGSIZE_HEADER + datalen;
memset(&msg.marker, 0xff, sizeof(msg.marker));