]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nftables: fix a warning message in nf_tables_commit_audit_collect()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 2 Apr 2021 11:45:44 +0000 (14:45 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 3 Apr 2021 18:19:37 +0000 (20:19 +0200)
commitdadf33c9f6b5f694e842d224a4d071f59ac665ee
tree201b5ec9105e1c0a9f0821fa573adb34157f282e
parentdaf47a7c109a166c812b2d701d66aa8905c54ec1
netfilter: nftables: fix a warning message in nf_tables_commit_audit_collect()

The first argument of a WARN_ONCE() is a condition.  This WARN_ONCE()
will only print the table name, and is potentially problematic if the
table name has a %s in it.

Fixes: c520292f29b8 ("audit: log nftables configuration change events once per table")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c