summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-11-30 15:33:06 +0000
committerclaudio <claudio@openbsd.org>2010-11-30 15:33:06 +0000
commitc428eb525f4767c5c9dd5434d1823e8f631c2010 (patch)
tree50117770652f5d6c3e3fac9cf6d97c78d9ddb261
parentThe returned SSL_METHOD of SSLv23_server_method()/SSLv23_client_method() (diff)
downloadwireguard-openbsd-c428eb525f4767c5c9dd5434d1823e8f631c2010.tar.xz
wireguard-openbsd-c428eb525f4767c5c9dd5434d1823e8f631c2010.zip
Do what the comment actually says. Ignore the full attribute not only the
header. ATTR_UNDEF is still a bit strange though but at least it will now parse and ignore such a freak attribute correctly.
-rw-r--r--usr.sbin/bgpd/rde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index bc505f86d24..76bfc7a9a76 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.302 2010/11/24 00:58:10 sthen Exp $ */
+/* $OpenBSD: rde.c,v 1.303 2010/11/30 15:33:06 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1372,6 +1372,7 @@ bad_len:
switch (type) {
case ATTR_UNDEF:
/* ignore and drop path attributes with a type code of 0 */
+ plen += attr_len;
break;
case ATTR_ORIGIN:
if (attr_len != 1)