From: Dr. Stephen Henson Date: Tue, 26 Jun 2001 12:38:33 +0000 (+0000) Subject: Another empty X509_NAME fix. X-Git-Tag: OpenSSL_0_9_6b~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1498ad74bbdff13b33cf57346f028c14b22beb0a;p=oweals%2Fopenssl.git Another empty X509_NAME fix. --- diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c index 314bdfb1c7..89ae73a6de 100644 --- a/crypto/asn1/t_x509.c +++ b/crypto/asn1/t_x509.c @@ -349,6 +349,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;