mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-10 02:58:05 -05:00
fix crl nullptr crash in read_certfile
This commit is contained in:
parent
bcdc5b7030
commit
1bdfcc8940
@ -4897,7 +4897,8 @@ static int read_certfile(GLOBAL_OPTIONS *options, CRYPTO_PARAMS *cparams)
|
||||
cparams->certs = X509_chain_up_ref(p7->d.sign->cert);
|
||||
|
||||
/* additional CRLs may be supplied as part of a PKCS#7 signed data structure */
|
||||
cparams->crls = X509_CRL_chain_up_ref(p7->d.sign->crl);
|
||||
if (p7->d.sign->crl)
|
||||
cparams->crls = X509_CRL_chain_up_ref(p7->d.sign->crl);
|
||||
PKCS7_free(p7);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user