summaryrefslogtreecommitdiff
path: root/net/ipv4/ip_forward.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-11-17 12:50:59 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2008-11-17 12:50:59 +1100
commit99c4abebe9678b76f61b9df4c2969b52ae9024fa (patch)
treeede4f1c5f454414774f5073566143abbe86d536b /net/ipv4/ip_forward.c
parentdf8e83d6f4852377210deef989cfb4234efa4eae (diff)
parent6817ba2cd22cfed2e93d062dca3d7a82465d693d (diff)
Merge commit 'net/master'
Diffstat (limited to 'net/ipv4/ip_forward.c')
-rw-r--r--net/ipv4/ip_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c
index 450016b89a18..df3fe50bbf0d 100644
--- a/net/ipv4/ip_forward.c
+++ b/net/ipv4/ip_forward.c
@@ -106,7 +106,7 @@ int ip_forward(struct sk_buff *skb)
* We now generate an ICMP HOST REDIRECT giving the route
* we calculated.
*/
- if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb->sp)
+ if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb_sec_path(skb))
ip_rt_send_redirect(skb);
skb->priority = rt_tos2priority(iph->tos);