From: Dr. Stephen Henson Date: Tue, 26 Jun 2001 12:39:22 +0000 (+0000) Subject: Another empty X509_NAME fix. X-Git-Tag: OpenSSL_0_9_6c~182^2~64 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=9d2e51c199dca67de3afa9ec91e684730a181783;ds=inline Another empty X509_NAME fix. --- 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;