summaryrefslogtreecommitdiff
path: root/app/openssl/crypto/asn1/t_x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/openssl/crypto/asn1/t_x509.c')
-rw-r--r--app/openssl/crypto/asn1/t_x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/openssl/crypto/asn1/t_x509.c b/app/openssl/crypto/asn1/t_x509.c
index edbb39a0..8e961f5e 100644
--- a/app/openssl/crypto/asn1/t_x509.c
+++ b/app/openssl/crypto/asn1/t_x509.c
@@ -475,6 +475,8 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
l=80-2-obase;
b=X509_NAME_oneline(name,NULL,0);
+ if (!b)
+ return 0;
if (!*b)
{
OPENSSL_free(b);