ipv4: Remove rt->rt_dst reference from ip_forward_options().
At this point iph->daddr equals what rt->rt_dst would hold. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8e36360ae8
commit
7be799a70b
|
@ -567,7 +567,7 @@ void ip_forward_options(struct sk_buff *skb)
|
|||
) {
|
||||
if (srrptr + 3 > srrspace)
|
||||
break;
|
||||
if (memcmp(&rt->rt_dst, &optptr[srrptr-1], 4) == 0)
|
||||
if (memcmp(&ip_hdr(skb)->daddr, &optptr[srrptr-1], 4) == 0)
|
||||
break;
|
||||
}
|
||||
if (srrptr + 3 <= srrspace) {
|
||||
|
|
Loading…
Reference in New Issue