]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix bug in AS path matching
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 16 Nov 2008 10:35:30 +0000 (11:35 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 16 Nov 2008 10:35:30 +0000 (11:35 +0100)
nest/a-path.c

index 5e3ecfd47651d7f4addc0630564073a5dafc9ec2..ad9780c734115152a7939fa17d586da32134f482 100644 (file)
@@ -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;