[PATCH] netfilter fcheck_task fix. v 2.3.99-pre7

From: Rusty Russell (rusty@linuxcare.com.au)
Date: Fri May 12 2000 - 08:33:31 EST


Linus, please apply.

Trivial change someone missed with their grep.

diff -urN -X /tmp/fileTXnAqa --minimal linux-2.3.99-pre7-official/net/ipv4/netfilter/ipt_owner.c working-pre7/net/ipv4/netfilter/ipt_owner.c
--- linux-2.3.99-pre7-official/net/ipv4/netfilter/ipt_owner.c Fri May 12 12:52:38 2000
+++ working-pre7/net/ipv4/netfilter/ipt_owner.c Fri May 12 15:51:33 2000
@@ -21,7 +21,8 @@
         p = find_task_by_pid(pid);
         if(p && p->files) {
                 for (i=0; i < p->files->max_fds; i++) {
- if (fcheck_task(p, i) == skb->sk->socket->file) {
+ if (fcheck_files(p->files, i)
+ == skb->sk->socket->file) {
                                 read_unlock(&tasklist_lock);
                                 return 1;
                         }
@@ -43,7 +44,8 @@
                         continue;
 
                 for (i=0; i < p->files->max_fds; i++) {
- if (fcheck_task(p, i) == skb->sk->socket->file) {
+ if (fcheck_files(p->files, i)
+ == skb->sk->socket->file) {
                                 found = 1;
                                 break;
                         }

--
Hacking time.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:20 EST