diff options
-rw-r--r-- | filter/filter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/filter/filter.c b/filter/filter.c index 4a61d536..1f8fd338 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1130,10 +1130,7 @@ u32 f_eval_asn(struct f_inst *expr) { struct f_val res = interpret(expr); - if (res.type != T_INT) - cf_error("Can't operate with value of non-integer type in AS path mask constructor"); - - return res.val.i; + return (res.type == T_INT) ? res.val.i : 0; } /** |