diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-28 19:04:21 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-28 19:41:58 +0100 |
commit | d297735543a8c32b83e40563f01fea33e233b4ef (patch) | |
tree | c1a512da3971f64295d749a06ddf7f2561af1dfe /tests/regression | |
parent | 8ff7fed3b0d866268322d27511ddc73fbd8c77c8 (diff) |
datatype: fix crash when using basetype instead of symbolic constants
The following example:
# nft add rule filter input ct state 8 accept
Segmentation fault
leads to a crash because we have the following datatype relation:
ct_state -> bitmask -> integer
The bitmask, which is an intermediate basetype, has no parse()
function, this leads to a crash in symbolic_constant_parse().
Patrick suggested to walk down the chain until we find a parser
function.
Reported-by: leroy christophe <christophe.leroy@c-s.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/regression')
-rw-r--r-- | tests/regression/any/ct.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regression/any/ct.t b/tests/regression/any/ct.t index 7ce898de..79674ee7 100644 --- a/tests/regression/any/ct.t +++ b/tests/regression/any/ct.t @@ -13,6 +13,7 @@ ct state {new,established, related, untracked};ok - ct state != {new,established, related, untracked};ok ct state invalid drop;ok ct state established accept;ok +ct state 8;ok;ct state new ct direction original;ok ct direction != original;ok |