提交 afcee950 编写于 作者: R Rich Salz 提交者: Rich Salz

Revert "EC_KEY_priv2buf (): check parameter sanity"

This reverts commit acae59bb.
Reviewed-by: NDr. Stephen Henson <steve@openssl.org>
上级 875856ef
......@@ -583,8 +583,8 @@ size_t EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf)
size_t len;
unsigned char *buf;
len = EC_KEY_priv2oct(eckey, NULL, 0);
if (len == 0 || pbuf == NULL)
return len;
if (len == 0)
return 0;
buf = OPENSSL_malloc(len);
if (buf == NULL)
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册