From: Ben Laurie Date: Sun, 8 Mar 2009 10:48:03 +0000 (+0000) Subject: Fix display of all 0 IPv6 address (from Rob Austein). X-Git-Tag: OpenSSL_0_9_8k~24 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=a17f351b56a06d1ecc9828a26811d4b5b34217df Fix display of all 0 IPv6 address (from Rob Austein). --- diff --git a/crypto/x509v3/v3_addr.c b/crypto/x509v3/v3_addr.c index a37f844d3c..0783550167 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++)