Check malloc
Noticed by Claus Assmann <ca+ssl-dev@esmtp.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
3577398360
commit
143e5e50f2
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user