diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-05-31 23:50:13 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-05-31 23:50:13 +0200 |
commit | 0b1cad81623e85f1f1b9ef3652cdc389641496e5 (patch) | |
tree | 284a69d6323db5629581a0e46872f1e62cc37b46 /filter/filter.c | |
parent | b5958826cc5fc75b5f99c51559d1ffedea5884b4 (diff) | |
download | bird-0b1cad81623e85f1f1b9ef3652cdc389641496e5.tar bird-0b1cad81623e85f1f1b9ef3652cdc389641496e5.zip |
Complain when filter does not end in accept nor reject.
Diffstat (limited to 'filter/filter.c')
-rw-r--r-- | filter/filter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c index 59b9658..f1a8f8f 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -736,8 +736,10 @@ f_run(struct filter *filter, struct rte **rte, struct ea_list **tmp_attrs, struc f_pool = tmp_pool; inst = filter->root; res = interpret(inst); - if (res.type != T_RETURN) + if (res.type != T_RETURN) { + log( L_ERR "Filter %s did not return accept nor reject. Make up your mind", filter->name); return F_ERROR; + } DBG( "done (%d)\n", res.val.i ); return res.val.i; } |