summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-09-18 01:42:02 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-09-18 01:42:02 +0000
commit090d848ea89b112587cf2e5b26acfaaae6bf79c2 (patch)
treea5789dbfde7a71450c4b7fab783c64b78ac2365f /crypto
parent9a0f732d75b438752a0b2508732791e296caf304 (diff)
Various CRL enhancements tidies and workaround for broken CRLs.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/x_crl.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/crypto/asn1/x_crl.c b/crypto/asn1/x_crl.c
index cd46bbebc2..25657a8799 100644
--- a/crypto/asn1/x_crl.c
+++ b/crypto/asn1/x_crl.c
@@ -190,20 +190,17 @@ X509_CRL_INFO *d2i_X509_CRL_INFO(X509_CRL_INFO **a, unsigned char **pp,
}
}
- if (ver >= 1)
+ if (ret->extensions != NULL)
{
- if (ret->extensions != NULL)
- {
- while (sk_X509_EXTENSION_num(ret->extensions))
- X509_EXTENSION_free(
- sk_X509_EXTENSION_pop(ret->extensions));
- }
-
- M_ASN1_D2I_get_EXP_set_opt_type(X509_EXTENSION,ret->extensions,
- d2i_X509_EXTENSION,
- X509_EXTENSION_free,0,
- V_ASN1_SEQUENCE);
+ while (sk_X509_EXTENSION_num(ret->extensions))
+ X509_EXTENSION_free(
+ sk_X509_EXTENSION_pop(ret->extensions));
}
+
+ M_ASN1_D2I_get_EXP_set_opt_type(X509_EXTENSION,ret->extensions,
+ d2i_X509_EXTENSION,
+ X509_EXTENSION_free,0,
+ V_ASN1_SEQUENCE);
M_ASN1_D2I_Finish(a,X509_CRL_INFO_free,ASN1_F_D2I_X509_CRL_INFO);
}