提交 3a7581bf 编写于 作者: J Jonas Maebe 提交者: Kurt Roeckx

tree_print: check for NULL after allocating err

Signed-off-by: NKurt Roeckx <kurt@roeckx.be>
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 288b4e4f
......@@ -101,6 +101,8 @@ static void tree_print(char *str, X509_POLICY_TREE *tree,
int i;
BIO *err;
err = BIO_new_fp(stderr, BIO_NOCLOSE);
if (err == NULL)
return;
if (!curr)
curr = tree->levels + tree->nlevel;
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册