mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Check for a NULL return value from a call to X509_STORE_CTX_new()
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
138388fe33
commit
7001571330
@ -244,7 +244,7 @@ int crl_main(int argc, char **argv)
|
||||
if (lookup == NULL)
|
||||
goto end;
|
||||
ctx = X509_STORE_CTX_new();
|
||||
if (!X509_STORE_CTX_init(ctx, store, NULL, NULL)) {
|
||||
if (ctx == NULL || !X509_STORE_CTX_init(ctx, store, NULL, NULL)) {
|
||||
BIO_printf(bio_err, "Error initialising X509 store\n");
|
||||
goto end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user