mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Print IPv6 all 0s correctly (Rob Austein).
This commit is contained in:
parent
77202a85a0
commit
c2a548a884
@ -190,6 +190,8 @@ static int i2r_address(BIO *out,
|
||||
BIO_printf(out, "%x%s", (addr[i] << 8) | addr[i+1], (i < 14 ? ":" : ""));
|
||||
if (i < 16)
|
||||
BIO_puts(out, ":");
|
||||
if (i == 0)
|
||||
BIO_puts(out, ":");
|
||||
break;
|
||||
default:
|
||||
for (i = 0; i < bs->length; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user