diff options
author | davem <davem> | 2002-01-16 18:26:54 +0000 |
---|---|---|
committer | davem <davem> | 2002-01-16 18:26:54 +0000 |
commit | 6f03c869e708f289a69077d7dbea133cfaa98773 (patch) | |
tree | e68e28aff3a822ff74c328f930642471159400af | |
parent | 6f39836bdfd4a127c557a20abcdcf7023b0c9310 (diff) | |
download | netdev-vger-cvs-6f03c869e708f289a69077d7dbea133cfaa98773.tar.gz |
Fix the build.
-rw-r--r-- | net/ipv4/netfilter/ip_fw_compat_redir.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_fw_compat_redir.c b/net/ipv4/netfilter/ip_fw_compat_redir.c index 6760147c4..1b1139168 100644 --- a/net/ipv4/netfilter/ip_fw_compat_redir.c +++ b/net/ipv4/netfilter/ip_fw_compat_redir.c @@ -270,8 +270,10 @@ check_for_redirect(struct sk_buff *skb) if (redir) { DEBUGP("Doing tcp redirect again.\n"); do_tcp_redir(skb, redir); - if (del_timer(&redir->destroyme)) - add_timer(&redir->destroyme, jiffies + REDIR_TIMEOUT); + if (del_timer(&redir->destroyme)) { + redir->destroyme.expires = jiffies + REDIR_TIMEOUT; + add_timer(&redir->destroyme); + } } UNLOCK_BH(&redir_lock); } @@ -296,8 +298,10 @@ check_for_unredirect(struct sk_buff *skb) if (redir) { DEBUGP("Doing tcp unredirect.\n"); do_tcp_unredir(skb, redir); - if (del_timer(&redir->destroyme)) - add_timer(&redir->destroyme, jiffies + REDIR_TIMEOUT); + if (del_timer(&redir->destroyme)) { + redir->destroyme.expires = jiffies + REDIR_TIMEOUT; + add_timer(&redir->destroyme); + } } UNLOCK_BH(&redir_lock); } |