]> git.ipfire.org Git - thirdparty/nftables.git/commit
segtree: Fix expr_value_cmp()
authorPhil Sutter <phil@nwl.cc>
Thu, 6 Jul 2017 14:25:28 +0000 (16:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Jul 2017 15:28:46 +0000 (17:28 +0200)
commita177d08d82c4cf946324640a63581e837164dc0b
treec330b564a8667ffdd9cc49484fc1ea6255042b9a
parent8069b60a331141f00924f9fc9fad478badff6687
segtree: Fix expr_value_cmp()

Instead of returning the result of mpz_cmp(), this function returned 1
unless both elements were equal and the first one had
EXPR_F_INTERVAL_END set.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/segtree.c