netfilter: nf_tables: fix a missing check of nla_put_failure
authorKangjie Lu <kjlu@umn.edu>
Fri, 21 Dec 2018 06:46:23 +0000 (00:46 -0600)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 29 Dec 2018 01:44:51 +0000 (02:44 +0100)
commiteb8950861c1bfd3eecc8f6faad213e3bca0dc395
treeeba309e7d3e79a7d7f18f6dc44a685f148eec46e
parenta3c9311f62b4943228ae90f769775dd3bcbfa7c0
netfilter: nf_tables: fix a missing check of nla_put_failure

If nla_nest_start() may fail. The fix checks its return value and goes
to nla_put_failure if it fails.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c