summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3/v3_prn.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-03-31 15:24:02 +0200
committerRichard Levitte <levitte@openssl.org>2003-03-31 15:24:02 +0200
commit6dd6da60054382a9d8e14ec8755d0ecf48bdf102 (patch)
treed7c51e7be3c0a008f17cba17949007d2315a9cef /crypto/x509v3/v3_prn.c
parentAdd usage string for -fingerprint. (diff)
downloadopenssl-6dd6da60054382a9d8e14ec8755d0ecf48bdf102.tar.xz
openssl-6dd6da60054382a9d8e14ec8755d0ecf48bdf102.zip
Don't feil when indent is 0.
PR: 559
Diffstat (limited to 'crypto/x509v3/v3_prn.c')
-rw-r--r--crypto/x509v3/v3_prn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_prn.c b/crypto/x509v3/v3_prn.c
index aeaf6170fe..754808b625 100644
--- a/crypto/x509v3/v3_prn.c
+++ b/crypto/x509v3/v3_prn.c
@@ -178,7 +178,7 @@ int X509V3_extensions_print(BIO *bp, char *title, STACK_OF(X509_EXTENSION) *exts
ASN1_OBJECT *obj;
X509_EXTENSION *ex;
ex=sk_X509_EXTENSION_value(exts, i);
- if (BIO_printf(bp,"%*s",indent, "") <= 0) return 0;
+ if (indent && BIO_printf(bp,"%*s",indent, "") <= 0) return 0;
obj=X509_EXTENSION_get_object(ex);
i2a_ASN1_OBJECT(bp,obj);
j=X509_EXTENSION_get_critical(ex);