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:
Li RongQing 2019-08-20 10:46:00 +08:00 committed by David S. Miller
parent f17f7648a4
commit 0f404bbdaf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}