projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77202a8
)
Print IPv6 all 0s correctly (Rob Austein).
author
Ben Laurie
<ben@openssl.org>
Sun, 8 Mar 2009 10:54:45 +0000
(10:54 +0000)
committer
Ben Laurie
<ben@openssl.org>
Sun, 8 Mar 2009 10:54:45 +0000
(10:54 +0000)
crypto/x509v3/v3_addr.c
patch
|
blob
|
history
diff --git
a/crypto/x509v3/v3_addr.c
b/crypto/x509v3/v3_addr.c
index cf48d7ea1faa3d7cfdf620482fca07500f88c72e..9a13469a998635751f43bac043c0fd51d2c1feb6 100644
(file)
--- 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++)