summaryrefslogtreecommitdiff
path: root/net/ipv4/icmp.c
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2019-08-20 10:46:00 +0800
committerDavid S. Miller <davem@davemloft.net>2019-08-21 20:43:22 -0700
commit0f404bbdaf1624f4d25dd67da7ff85eab005beac (patch)
tree583404f63bf1a2ad6385caee1356331117f182d0 /net/ipv4/icmp.c
parentf17f7648a49aa6728649ddf79bdbcac4f1970ce4 (diff)
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>
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r--net/ipv4/icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
index 1510e951f451..bf7b5d45de99 100644
--- a/net/ipv4/icmp.c
+++ b/net/ipv4/icmp.c
@@ -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;
}