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 /src/exthdr.c | |
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 'src/exthdr.c')
0 files changed, 0 insertions, 0 deletions