diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-19 10:55:42 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-19 10:55:42 +0000 |
commit | 0be5a7a68727d68aa5b7f0bb5d75408622680df3 (patch) | |
tree | c74a45ac118bfc79d58227074d43f9605256c4ce /usr.sbin/bgpd | |
parent | 9fa68f96f3cdb48bc170c5e764b64478eec5dad2 (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.c | 6 |
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]; |