From 0be5a7a68727d68aa5b7f0bb5d75408622680df3 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 19 Feb 2004 10:55:42 +0000 Subject: Doh. Copy pasto. The if is always false and bogus. --- usr.sbin/bgpd/rde_attr.c | 6 +----- 1 file changed, 1 insertion(+), 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 @@ -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]; -- cgit v1.2.3