[PATCH] Fix filter comparison when using !~

Vincent Bernat Vincent.Bernat at exoscale.ch
Tue Jan 24 15:12:40 CET 2017


From: Vincent Bernat <vincent at bernat.im>

When BIRD compares a filter using the `!~`, we get:

    Unknown instruction 8574 in same (~)

This is due to the missing case for the `!~` operator. Add it.
---
 filter/filter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/filter/filter.c b/filter/filter.c
index 85a062586089..f18970e05939 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -1559,6 +1559,7 @@ i_same(struct f_inst *f1, struct f_inst *f2)
   case P('<','='): TWOARGS; break;
 
   case '!': ONEARG; break;
+  case P('!', '~'):
   case '~': TWOARGS; break;
   case P('d','e'): ONEARG; break;
 
-- 
2.11.0



More information about the Bird-users mailing list