aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-02-27 16:03:55 -0500
committerDavid S. Miller <davem@davemloft.net>2006-02-27 16:03:55 -0500
commit45fe4dc08cbf9510074b97a16606366c1d405f4d (patch)
tree2c629e31e03d62e84c375ad809861806a02840e0 /net/netfilter
parente121e9ecb08c3a9843243f461290869ff08be900 (diff)
[NETFILTER]: nf_queue: fix end-of-list check
The comparison wants to find out if the last list iteration reached the end of the list. It needs to compare the iterator with the list head to do this, not the element it is looking for. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c
index 913df7dcbada..d9f0d7ef103b 100644
--- a/net/netfilter/nf_queue.c
+++ b/net/netfilter/nf_queue.c
@@ -214,7 +214,7 @@ void nf_reinject(struct sk_buff *skb, struct nf_info *info,
214 break; 214 break;
215 } 215 }
216 216
217 if (elem == &nf_hooks[info->pf][info->hook]) { 217 if (i == &nf_hooks[info->pf][info->hook]) {
218 /* The module which sent it to userspace is gone. */ 218 /* The module which sent it to userspace is gone. */
219 NFDEBUG("%s: module disappeared, dropping packet.\n", 219 NFDEBUG("%s: module disappeared, dropping packet.\n",
220 __FUNCTION__); 220 __FUNCTION__);