]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/nf_queue.c
[NETFILTER]: nf_queue: fix end-of-list check
[linux-2.6-omap-h63xx.git] / net / netfilter / nf_queue.c
index 913df7dcbada908f8a69b56c1a1c61b85f3f42d7..d9f0d7ef103b61f8209eaa9fd9aaa29306438309 100644 (file)
@@ -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__);