Code

store_lookup: Fixed parsing of invalid compare expressions.
authorSebastian Harl <sh@tokkee.org>
Sun, 5 Oct 2014 16:19:39 +0000 (18:19 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 5 Oct 2014 17:19:13 +0000 (19:19 +0200)
commit92162ac6318667e3beac4afcdd938fdfe8f58fae
treec13796ac7757a507a0fea66ec9361d198edc045b
parentdf089f4e06bfb0a33f39211d054393e4af325984
store_lookup: Fixed parsing of invalid compare expressions.

Previously, expressions like 'host.foo != 123' would be silently accepted by
the parser.

Added test cases to reproduce and catch the problem.
src/core/store_lookup.c
t/unit/core/store_lookup_test.c