aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-08-25 16:26:31 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-08-25 16:26:31 +0200
commit5b865deb3f2eafa1dcefabedf4af17a4c72f6cb8 (patch)
treed7b989acb7d0d30c8faaf8f3d40217a2089a723e
parent0a4d0e8fbf119e61f7223ac00a42505abf7eb168 (diff)
downloadbusybox-5b865deb3f2eafa1dcefabedf4af17a4c72f6cb8.tar.gz
ping: fix recently introduced build breakage for non-optimizing builds
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c
index e1f9ebc3a..dcbf19682 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);