projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17f764
)
net: fix icmp_socket_deliver argument 2 input
author
Li RongQing
<lirongqing@baidu.com>
Tue, 20 Aug 2019 02:46:00 +0000
(10:46 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 22 Aug 2019 03:43:22 +0000
(20:43 -0700)
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>
net/ipv4/icmp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/icmp.c
b/net/ipv4/icmp.c
index 1510e951f4511a351ba0afa7330731bb16331fc9..bf7b5d45de99cdd6d9fcd7e79a92a4c444d311bf 100644
(file)
--- 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;
}