diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-10-09 01:00:53 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-10-09 01:02:32 +0200 |
commit | 06ad8f9ebc1d1ce804d51285604ccb6297229451 (patch) | |
tree | 7dc154e46bf55ae5b2dcca9c5c72e1f0756b336e | |
parent | 7e4553865f339f1dc01de1a0601239b7adda0d32 (diff) |
Fixes error handling in ASN expressions.
-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; } /** |