提交 1f0af2c0 编写于 作者: R Richard Levitte

len is a size_t, which is an unsigned integer. Therefore, some

compilers will complain against the check for less than zero.
上级 2ed2d151
......@@ -889,7 +889,7 @@ int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
size_t field_len, enc_len;
int ret = 0;
if (len <= 0)
if (len == 0)
{
ECerr(EC_F_EC_GFP_SIMPLE_OCT2POINT, EC_R_BUFFER_TOO_SMALL);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册