projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a4d0e8
)
ping: fix recently introduced build breakage for non-optimizing builds
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 25 Aug 2015 14:26:31 +0000
(16:26 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 25 Aug 2015 14:26:31 +0000
(16:26 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ping.c
patch
|
blob
|
history
diff --git
a/networking/ping.c
b/networking/ping.c
index e1f9ebc3a239aec01d271f45762994d9ac4aebdd..dcbf196821d9df1214fff8d90ae5cb5dc3e5fe62 100644
(file)
--- a/
networking/ping.c
+++ b/
networking/ping.c
@@
-769,7
+769,7
@@
static void ping6(len_and_sockaddr *lsa)
setsockopt_SOL_SOCKET_int(pingsock, SO_RCVBUF, sockopt);
sockopt = offsetof(struct icmp6_hdr, icmp6_cksum);
- if (
sockopt
!= 2)
+ if (
offsetof(struct icmp6_hdr, icmp6_cksum)
!= 2)
BUG_bad_offsetof_icmp6_cksum();
setsockopt_int(pingsock, SOL_RAW, IPV6_CHECKSUM, sockopt);