]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a bug in pair set intervals.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 15 Mar 2012 11:18:26 +0000 (12:18 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 15 Mar 2012 11:18:26 +0000 (12:18 +0100)
Pair intervals in form (a,b)..(c,d) were mishanded.

Thanks to Alexander Shikoff for the bugreport.

filter/config.Y

index 0166d27b87dab6b36dfbcc3b1696e69ffc2c1cf3..7828bf8b97238bb2980f40583445912c4f781366 100644 (file)
@@ -495,7 +495,7 @@ pair_item:
      /* Hack: $2 and $4 should be pair_expr, but that would cause shift/reduce conflict */
      if ((pair_a($2) != pair_b($2)) || (pair_a($4) != pair_b($4)))
        cf_error("syntax error");
-     $$ = f_new_pair_item(pair_b($2), pair_b($4), $8, $10); 
+     $$ = f_new_pair_item(pair_b($2), $8, pair_b($4), $10); 
    }
  ;