Fix bug in AS path matching

This commit is contained in:
Ondrej Zajicek 2008-11-16 11:35:30 +01:00
parent 258d0ad4ca
commit ebacaf6f7b

View file

@ -333,6 +333,7 @@ as_path_match(struct adata *path, struct f_path_mask *mask)
case AS_PATH_SEQUENCE: case AS_PATH_SEQUENCE:
len = *p++; len = *p++;
for (i=0; i<len; i++) { for (i=0; i<len; i++) {
next = p + bs;
as = get_as(p); as = get_as(p);
if (asterisk && (as == mask->val)) if (asterisk && (as == mask->val))
MASK_PLUS; MASK_PLUS;