mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
net: fix icmp_socket_deliver argument 2 input
it expects a unsigned int, but got a __be32 Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Zhang Yu <zhangyu31@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f17f7648a4
commit
0f404bbdaf
@ -902,7 +902,7 @@ static bool icmp_redirect(struct sk_buff *skb)
|
||||
return false;
|
||||
}
|
||||
|
||||
icmp_socket_deliver(skb, icmp_hdr(skb)->un.gateway);
|
||||
icmp_socket_deliver(skb, ntohl(icmp_hdr(skb)->un.gateway));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user