summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-02-19 10:55:42 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-02-19 10:55:42 +0000
commit0be5a7a68727d68aa5b7f0bb5d75408622680df3 (patch)
treec74a45ac118bfc79d58227074d43f9605256c4ce /usr.sbin/bgpd
parent9fa68f96f3cdb48bc170c5e764b64478eec5dad2 (diff)
Doh. Copy pasto. The if is always false and bogus.
Diffstat (limited to 'usr.sbin/bgpd')
-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];