inet_ntop: do not compress single zeros in IPv6
authorArthur Jones <arthur.jones@riverbed.com>
Tue, 5 Jun 2018 23:51:27 +0000 (16:51 -0700)
committerRich Felker <dalias@aerifal.cx>
Tue, 26 Jun 2018 20:47:31 +0000 (16:47 -0400)
commit5c8e69267b9ae919e55eee4b79580224111bc3ba
tree400887a1d8879984a86d3c1a13f44550dd42bf80
parentda5851e9f464f74533cc8270c932cf6466ff3256
inet_ntop: do not compress single zeros in IPv6

maintainer's note: this change is for conformance with RFC 5952,
4.2.2, which explicitly forbids use of :: to shorten a single 16-bit 0
field when producing the canonical text representation for an IPv6
address. fixes a test failure reported by Philip Homburg, who also
submitted a patch, but this fix is simpler and should produce smaller
code.
src/network/inet_ntop.c