summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/asn1/t_x509.c
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2015-05-06 09:50:11 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2015-05-06 09:50:11 -0400
commit4c03444e7c971185c20fa102eb09b707aea0d4d4 (patch)
treec8402158f0090f45bb46b9b539d981633e509f9a /Cryptlib/OpenSSL/crypto/asn1/t_x509.c
parent2283f5e85dbc78dd10810cb6ebfa39e61ab6759e (diff)
parenta14921c5944c340056312f2f5b1728d698f628b1 (diff)
downloadefi-boot-shim-4c03444e7c971185c20fa102eb09b707aea0d4d4.tar.gz
efi-boot-shim-4c03444e7c971185c20fa102eb09b707aea0d4d4.zip
New upstream release.
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/asn1/t_x509.c')
-rw-r--r--[-rwxr-xr-x]Cryptlib/OpenSSL/crypto/asn1/t_x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cryptlib/OpenSSL/crypto/asn1/t_x509.c b/Cryptlib/OpenSSL/crypto/asn1/t_x509.c
index 6f295b4e..f9dad0e6 100755..100644
--- a/Cryptlib/OpenSSL/crypto/asn1/t_x509.c
+++ b/Cryptlib/OpenSSL/crypto/asn1/t_x509.c
@@ -465,6 +465,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);