summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bgpd/rde_attr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c
index 3dcbdf11cd0..b21349b2732 100644
--- a/usr.sbin/bgpd/rde_attr.c
+++ b/usr.sbin/bgpd/rde_attr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_attr.c,v 1.9 2004/02/18 23:18:16 claudio Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.10 2004/02/19 10:55:41 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -686,10 +686,6 @@ aspath_loopfree(struct aspath *aspath, u_int16_t myAS)
u_int16_t len, seg_size;
u_int8_t i, seg_len, seg_type;
- if (len & 1)
- /* odd lenght aspath are invalid */
- return AS_ERR_BAD;
-
seg = aspath->data;
for (len = aspath->hdr.len; len > 0; len -= seg_size, seg += seg_size) {
seg_type = seg[0];