提交 70015713 编写于 作者: M Matt Caswell

Check for a NULL return value from a call to X509_STORE_CTX_new()

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 138388fe
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册