From 6651ac386eabc6e4196964c5fdaf64dcdda29088 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 17 May 2006 18:25:38 +0000 Subject: [PATCH] Fix from head. --- apps/pkcs12.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/pkcs12.c b/apps/pkcs12.c index c961e6b57b..300b20b250 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -873,10 +873,12 @@ int alg_print (BIO *x, X509_ALGOR *alg) unsigned char *p; p = alg->parameter->value.sequence->data; pbe = d2i_PBEPARAM (NULL, &p, alg->parameter->value.sequence->length); + if (!pbe) + return 1; BIO_printf (bio_err, "%s, Iteration %d\n", OBJ_nid2ln(OBJ_obj2nid(alg->algorithm)), ASN1_INTEGER_get(pbe->iter)); PBEPARAM_free (pbe); - return 0; + return 1; } /* Load all certificates from a given file */ -- 2.25.1