[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1566269160-11031-1-git-send-email-lirongqing@baidu.com>
Date: Tue, 20 Aug 2019 10:46:00 +0800
From: Li RongQing <lirongqing@...du.com>
To: netdev@...r.kernel.org
Subject: [PATCH] net: fix icmp_socket_deliver argument 2 input
it expects a unsigned int, but got a __be32
Signed-off-by: Li RongQing <lirongqing@...du.com>
Signed-off-by: Zhang Yu <zhangyu31@...du.com>
---
net/ipv4/icmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.16.2
Powered by blists - more mailing lists