]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filter: Fix eval command
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 23 Sep 2019 22:18:48 +0000 (00:18 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 23 Sep 2019 22:18:48 +0000 (00:18 +0200)
filter/filter.c

index 35bd75e613e4250fad462cf32080f94542e4459f..60e351f9cad65a9249f75ecb36772c803b61ea9a 100644 (file)
@@ -407,7 +407,7 @@ f_eval_buf(const struct f_line *expr, struct linpool *tmp_pool, buffer *buf)
 {
   struct f_val val;
   enum filter_return fret = f_eval(expr, tmp_pool, &val);
-  if (fret > F_RETURN)
+  if (fret <= F_RETURN)
     val_format(&val, buf);
   return fret;
 }