[PATCH] Fix filter comparison when using !~
From: Vincent Bernat <vincent@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
On Tue, Jan 24, 2017 at 03:12:40PM +0100, Vincent Bernat wrote:
From: Vincent Bernat <vincent@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.
Thanks, merged. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Ondrej Zajicek -
Vincent Bernat