patch-2.4.10 linux/net/ipv4/netfilter/ip_tables.c
Next file: linux/net/ipv4/netfilter/ipchains_core.c
Previous file: linux/net/ipv4/netfilter/ip_queue.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Sep 14 14:04:08 2001
- Orig file:
v2.4.9/linux/net/ipv4/netfilter/ip_tables.c
- Orig date:
Tue May 15 01:29:35 2001
diff -u --recursive --new-file v2.4.9/linux/net/ipv4/netfilter/ip_tables.c linux/net/ipv4/netfilter/ip_tables.c
@@ -1730,9 +1730,15 @@
}
#ifdef CONFIG_PROC_FS
- if (!proc_net_create("ip_tables_names", 0, ipt_get_tables)) {
+ {
+ struct proc_dir_entry *proc;
+
+ proc = proc_net_create("ip_tables_names", 0, ipt_get_tables);
+ if (!proc) {
nf_unregister_sockopt(&ipt_sockopts);
return -ENOMEM;
+ }
+ proc->owner = THIS_MODULE;
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)