diff options
author | Ben Laurie <ben@openssl.org> | 2009-03-08 10:54:45 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2009-03-08 10:54:45 +0000 |
commit | c2a548a884e85db9d9839c338e955655fe4657f1 (patch) | |
tree | b06c7ec6fb7867c34fdd6a2da1b04cc23d842a7c | |
parent | 77202a85a0c9cf8f72bfaf02c5f8e4721fbd6ce0 (diff) | |
download | openssl-new-c2a548a884e85db9d9839c338e955655fe4657f1.tar.gz |
Print IPv6 all 0s correctly (Rob Austein).
-rw-r--r-- | crypto/x509v3/v3_addr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509v3/v3_addr.c b/crypto/x509v3/v3_addr.c index cf48d7ea1f..9a13469a99 100644 --- a/crypto/x509v3/v3_addr.c +++ b/crypto/x509v3/v3_addr.c @@ -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++) |