]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Don't assume NFTNL_RULE_USERDATA holds a comment
authorPhil Sutter <phil@nwl.cc>
Thu, 7 Feb 2019 21:08:53 +0000 (22:08 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 8 Feb 2019 14:13:29 +0000 (15:13 +0100)
commitd1df0a36b0486c780211cfa574301132bf55f194
tree73176bcdfa0b291473cc45d1757251556c48828b
parent2478b6cbb8112f940cec61ec1e62a598472d33d0
nft: Don't assume NFTNL_RULE_USERDATA holds a comment

If this rule attribute is present but does not contain a comment,
get_comment() returns NULL which is then fed into strncpy() causing a
crash.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-shared.c