diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-09-18 01:42:02 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-09-18 01:42:02 +0000 |
commit | 090d848ea89b112587cf2e5b26acfaaae6bf79c2 (patch) | |
tree | a5789dbfde7a71450c4b7fab783c64b78ac2365f /crypto/asn1/x_crl.c | |
parent | 9a0f732d75b438752a0b2508732791e296caf304 (diff) |
Various CRL enhancements tidies and workaround for broken CRLs.
Diffstat (limited to 'crypto/asn1/x_crl.c')
-rw-r--r-- | crypto/asn1/x_crl.c | 21 |
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); } |