summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 6b1205b129f..cc3df29caf1 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.238 2005/11/01 10:58:29 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.239 2005/12/08 15:55:26 claudio Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -1773,7 +1773,7 @@ parse_open(struct peer *peer)
memcpy(&optparamlen, p, sizeof(optparamlen));
p += sizeof(optparamlen);
- if (optparamlen > msglen - MSGSIZE_OPEN_MIN) {
+ if (optparamlen != msglen - MSGSIZE_OPEN_MIN) {
log_peer_warnx(&peer->conf,
"corrupt OPEN message received: length mismatch");
session_notification(peer, ERR_OPEN, 0, NULL, 0);