提交 143e5e50 编写于 作者: R Rich Salz 提交者: Rich Salz

Check malloc

Noticed by Claus Assmann <ca+ssl-dev@esmtp.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 35773983
...@@ -381,7 +381,8 @@ OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void) ...@@ -381,7 +381,8 @@ OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void)
{ {
OPENSSL_INIT_SETTINGS *ret = malloc(sizeof(*ret)); OPENSSL_INIT_SETTINGS *ret = malloc(sizeof(*ret));
memset(ret, 0, sizeof(*ret)); if (ret != NULL)
memset(ret, 0, sizeof(*ret));
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册