nf_reinject() buggy?
in nf_reinject(), we have
void nf_reinject(struct sk_buff *skb, struct nf_info *info,
unsigned int verdict)
{
struct list_head *elem = &info->elem->list;
struct list_head *i;
......
list_for_each_rcu(i, &nf_hooks[info->pf][info->hook]) {
if (i == elem) break;
}
---> if (elem == &nf_hooks[info->pf][info->hook]) {
/* The module which sent it to userspace is gone. */
NFDEBUG("%s: module disappeared, dropping packet.\n",
__FUNCTION__);
verdict = NF_DROP;
}
......
}I think the statement tagged "--->" should be
if (i == &nf_hooks[info->pf][info->hook]) {Am I right?
regards