[git commit] ping: fix recently introduced build breakage for non-optimizing builds

Denys Vlasenko vda.linux at googlemail.com
Tue Aug 25 14:26:31 UTC 2015


commit: http://git.busybox.net/busybox/commit/?id=5b865deb3f2eafa1dcefabedf4af17a4c72f6cb8
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ping.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/networking/ping.c b/networking/ping.c
index e1f9ebc..dcbf196 100644
--- 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);
 


More information about the busybox-cvs mailing list