From a17f351b56a06d1ecc9828a26811d4b5b34217df Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 8 Mar 2009 10:48:03 +0000 Subject: [PATCH] Fix display of all 0 IPv6 address (from Rob Austein). --- crypto/x509v3/v3_addr.c | 2 ++ 1 file changed, 2 insertions(+) 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++) -- 2.25.1