From: Denys Vlasenko Date: Tue, 25 Aug 2015 14:26:31 +0000 (+0200) Subject: ping: fix recently introduced build breakage for non-optimizing builds X-Git-Tag: 1_24_0~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b865deb3f2eafa1dcefabedf4af17a4c72f6cb8;p=oweals%2Fbusybox.git ping: fix recently introduced build breakage for non-optimizing builds Signed-off-by: Denys Vlasenko --- 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);