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 ? ":" : ""));
|
BIO_printf(out, "%x%s", (addr[i] << 8) | addr[i+1], (i < 14 ? ":" : ""));
|
||||||
if (i < 16)
|
if (i < 16)
|
||||||
BIO_puts(out, ":");
|
BIO_puts(out, ":");
|
||||||
|
if (i == 0)
|
||||||
|
BIO_puts(out, ":");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
for (i = 0; i < bs->length; i++)
|
for (i = 0; i < bs->length; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user