Print IPv6 all 0s correctly (Rob Austein).
This commit is contained in:
parent
77202a85a0
commit
c2a548a884
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue