summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-02-21 22:46:50 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-02-21 22:46:50 +0100
commit82ba9032be9cf1210ffffd01245b99ce5d9b6b1b (patch)
treef6a513732a470dad37df6e6bb42423943feaef1b
parentcd17c651a60c30837b683f8ca6e07139dc57d882 (diff)
Fixes crash during some expressions
Bird crashed when 'bgp_path.len' was used for routes that does not came from BGP.
-rw-r--r--filter/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c
index f8ec66b0..9e75f174 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -661,7 +661,7 @@ interpret(struct f_inst *what)
switch(v1.type) {
case T_PREFIX: res.val.i = v1.val.px.len; break;
case T_PATH: res.val.i = as_path_getlen(v1.val.ad); break;
- default: bug( "Length of what?" );
+ default: runtime( "Prefix or path expected" );
}
break;
case P('c','p'): /* Convert prefix to ... */