Browse Source

[NETFILTER]: arp_tables: missing unregistration on module unload

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Patrick McHardy 18 years ago
parent
commit
f603b6ec50
1 changed files with 2 additions and 0 deletions
  1. 2 0
      net/ipv4/netfilter/arp_tables.c

+ 2 - 0
net/ipv4/netfilter/arp_tables.c

@@ -1196,6 +1196,8 @@ err1:
 static void __exit arp_tables_fini(void)
 static void __exit arp_tables_fini(void)
 {
 {
 	nf_unregister_sockopt(&arpt_sockopts);
 	nf_unregister_sockopt(&arpt_sockopts);
+	xt_unregister_target(&arpt_error_target);
+	xt_unregister_target(&arpt_standard_target);
 	xt_proto_fini(NF_ARP);
 	xt_proto_fini(NF_ARP);
 }
 }