summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/t_x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-06-26 12:39:22 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-06-26 12:39:22 +0000
commit9d2e51c199dca67de3afa9ec91e684730a181783 (patch)
tree2d90c31cbbd7e17bf4a97341735f2afb243fbda6 /crypto/asn1/t_x509.c
parent1e325f614913435d214c3f5a25bb38a9aacbcb54 (diff)
Another empty X509_NAME fix.
Diffstat (limited to 'crypto/asn1/t_x509.c')
-rw-r--r--crypto/asn1/t_x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c
index ff4a991b66..454c695eb2 100644
--- a/crypto/asn1/t_x509.c
+++ b/crypto/asn1/t_x509.c
@@ -440,6 +440,8 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
ll=80-2-obase;
s=X509_NAME_oneline(name,buf,256);
+ if (!*s)
+ return 1;
s++; /* skip the first slash */
l=ll;