diff options
author | Patrick McHardy <kaber@trash.net> | 2006-02-27 13:03:55 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-02-27 13:03:55 -0800 |
commit | 45fe4dc08cbf9510074b97a16606366c1d405f4d (patch) | |
tree | 2c629e31e03d62e84c375ad809861806a02840e0 /net/netfilter | |
parent | e121e9ecb08c3a9843243f461290869ff08be900 (diff) | |
download | kernel_samsung_espresso10-45fe4dc08cbf9510074b97a16606366c1d405f4d.zip kernel_samsung_espresso10-45fe4dc08cbf9510074b97a16606366c1d405f4d.tar.gz kernel_samsung_espresso10-45fe4dc08cbf9510074b97a16606366c1d405f4d.tar.bz2 |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_queue.c b/net/netfilter/nf_queue.c index 913df7d..d9f0d7e 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, break; } - if (elem == &nf_hooks[info->pf][info->hook]) { + if (i == &nf_hooks[info->pf][info->hook]) { /* The module which sent it to userspace is gone. */ NFDEBUG("%s: module disappeared, dropping packet.\n", __FUNCTION__); |