提交 34374c2d 编写于 作者: J Jonas Maebe 提交者: Kurt Roeckx

old_hmac_encode: check for NULL result when allocating *pder

Signed-off-by: NKurt Roeckx <kurt@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 6f77f82b
......@@ -123,6 +123,8 @@ static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder)
if (!*pder)
{
*pder = OPENSSL_malloc(os->length);
if (*pder == NULL)
return -1;
inc = 0;
}
else inc = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册