Another empty X509_NAME fix.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 26 Jun 2001 12:39:22 +0000 (12:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 26 Jun 2001 12:39:22 +0000 (12:39 +0000)
crypto/asn1/t_x509.c

index ff4a991..454c695 100644 (file)
@@ -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;