netfilter: nf_log: don't zap all loggers on unregister
authorFlorian Westphal <fw@strlen.de>
Wed, 9 Sep 2015 00:57:21 +0000 (02:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Sep 2015 12:40:24 +0000 (14:40 +0200)
commit205ee117d4dc4a11ac3bd9638bb9b2e839f4de9a
tree727c94e59568c404c14747f106fe8ae67d91dd22
parente8684c88774c0ddfeefdbed0aa469b25b9962f3e
netfilter: nf_log: don't zap all loggers on unregister

like nf_log_unset, nf_log_unregister must not reset the list of loggers.
Otherwise, a call to nf_log_unregister() will render loggers of other nf
protocols unusable:

iptables -A INPUT -j LOG
modprobe nf_log_arp ; rmmod nf_log_arp
iptables -A INPUT -j LOG
iptables: No chain/target/match by that name

Fixes: 30e0c6a6be ("netfilter: nf_log: prepare net namespace support for loggers")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_log.c