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:00:53 +0200 |
commit | 938b191b9282b138cbdd30dfc11b78c0467d6380 (patch) | |
tree | 0dfcbc91a5c446455f85df47ef3dcfb46534d530 /filter | |
parent | 112d71a73f30d26891eda4374bf0f2ab31c5c048 (diff) | |
download | bird-938b191b9282b138cbdd30dfc11b78c0467d6380.tar bird-938b191b9282b138cbdd30dfc11b78c0467d6380.zip |
Fixes error handling in ASN expressions.
Diffstat (limited to 'filter')
-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 3b150a7..8426a21 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1150,10 +1150,7 @@ f_eval_asn(struct f_inst *expr) { /* Called as a part of another interpret call, therefore no log_reset() */ 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; } /** |