Commit 0f404bbd authored by Li RongQing's avatar Li RongQing Committed by David S. Miller

net: fix icmp_socket_deliver argument 2 input

it expects a unsigned int, but got a __be32
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarZhang Yu <zhangyu31@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f17f7648
...@@ -902,7 +902,7 @@ static bool icmp_redirect(struct sk_buff *skb) ...@@ -902,7 +902,7 @@ static bool icmp_redirect(struct sk_buff *skb)
return false; return false;
} }
icmp_socket_deliver(skb, icmp_hdr(skb)->un.gateway); icmp_socket_deliver(skb, ntohl(icmp_hdr(skb)->un.gateway));
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment