summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorAlvaro Neira <alvaroneay@gmail.com>2014-11-26 12:07:51 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-11-26 12:12:51 +0100
commit8ff7fed3b0d866268322d27511ddc73fbd8c77c8 (patch)
tree59e3858117bae60f5405cf8f9a04c3610f8aed06 /src/scanner.l
parent57b1eb1ccc074337cc64b86f5bbcedfb583deaeb (diff)
evaluate: reject: fix crash on NULL location with bridge and tcp reset
If we use tcp reset with a network protocol that tcp is not supported, we display an error. This error use the reject.expr location which is NULL, therefore we have a crash. This patch replaces it using the reject statement to display the error like: Rule: nft add bridge filter input ether type vlan reject with tcp reset Output: <cmdline>:1:46-51: Error: cannot reject this ether type add rule bridge filter input ether type vlan reject with tcp reset ~~~~~~~~~~~~~~~ ^^^^^^ Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
0 files changed, 0 insertions, 0 deletions