aboutsummaryrefslogtreecommitdiff
path: root/utils/print_roa/print_roa.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2011-04-05 01:13:39 +0000
committerRob Austein <sra@hactrn.net>2011-04-05 01:13:39 +0000
commit3b2336ac6ae90c45e34e2496fabbd16e4f8203b8 (patch)
tree73e0dafe12e63d2df46473efe00993b9e34ee997 /utils/print_roa/print_roa.c
parent14844f42caa9da89bb98076588d25d36e38d64e5 (diff)
Sigh, "::" print bug, same as in OpenSSL i2r_address(), fixed it there
years ago, missed it here. svn path=/utils/print_roa/print_roa.c; revision=3760
Diffstat (limited to 'utils/print_roa/print_roa.c')
-rw-r--r--utils/print_roa/print_roa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/print_roa/print_roa.c b/utils/print_roa/print_roa.c
index ffeb5e69..7783a180 100644
--- a/utils/print_roa/print_roa.c
+++ b/utils/print_roa/print_roa.c
@@ -345,6 +345,8 @@ static ROA *read_roa(const char *filename, const int print_cms, const int print_
printf("%x%s", (addr[k] << 8) | addr[k+1], (k < 14 ? ":" : ""));
if (k < 16)
printf(":");
+ if (k == 0)
+ printf(":");
break;
default: