Fix from head.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 17 May 2006 18:25:38 +0000 (18:25 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 17 May 2006 18:25:38 +0000 (18:25 +0000)
apps/pkcs12.c

index c961e6b57ba7754732353299e14b592b4c1f373e..300b20b2508414ecd8a1e45ba54a92d0a15198fa 100644 (file)
@@ -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 */