diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-11-30 15:33:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-11-30 15:33:07 +0000 |
commit | 9c9e6000c54a156e5faf612b968d7e58003f40d9 (patch) | |
tree | a1170a1e441495b641e7b9a3ccf1d59cb939c991 | |
parent | d4f8fc1386472f76d2dd581de3a21cb1d0e05f8a (diff) |
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.c | 3 |
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) |