summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-11-16 11:35:30 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-11-16 11:35:30 +0100
commitebacaf6f7b4418dd283fd3e39b84e48e331a6a66 (patch)
treeca116a6eeb0335c115d06ae49cb799a64e7558ef
parent258d0ad4ca550895a1ef20fc478c0160be5374f2 (diff)
downloadbird-ebacaf6f7b4418dd283fd3e39b84e48e331a6a66.tar
bird-ebacaf6f7b4418dd283fd3e39b84e48e331a6a66.zip
Fix bug in AS path matching
-rw-r--r--nest/a-path.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/a-path.c b/nest/a-path.c
index 5e3ecfd..ad9780c 100644
--- a/nest/a-path.c
+++ b/nest/a-path.c
@@ -333,6 +333,7 @@ as_path_match(struct adata *path, struct f_path_mask *mask)
case AS_PATH_SEQUENCE:
len = *p++;
for (i=0; i<len; i++) {
+ next = p + bs;
as = get_as(p);
if (asterisk && (as == mask->val))
MASK_PLUS;