From 82ba9032be9cf1210ffffd01245b99ce5d9b6b1b Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Feb 2009 22:46:50 +0100 Subject: Fixes crash during some expressions Bird crashed when 'bgp_path.len' was used for routes that does not came from BGP. --- filter/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/filter.c b/filter/filter.c index f8ec66b..9e75f17 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 ... */ -- cgit v1.2.3