← Commit list

5b865deb3

Denys Vlasenko
Denys Vlasenko
2015-08-25
SUCCESS Duration: 269s

Subject

ping: fix recently introduced build breakage for non-optimizing builds

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ping.c+1 -1
@@ -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);