From c2a548a884e85db9d9839c338e955655fe4657f1 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 8 Mar 2009 10:54:45 +0000 Subject: [PATCH] Print IPv6 all 0s correctly (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 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++) -- 2.25.1