aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-05-14 11:56:47 +0000
committerRichard Levitte <levitte@openssl.org>2001-05-14 11:56:47 +0000
commit1f0af2c073a3eca6091791a4c564f7d083ee1a45 (patch)
tree0dbb57d37d5b1b2aa3247b284daff59457c2a1e7 /crypto/ec
parent2ed2d1515e9dd05ff2a73a3e7a49b95ad9256bcf (diff)
downloadopenssl-1f0af2c073a3eca6091791a4c564f7d083ee1a45.tar.gz
len is a size_t, which is an unsigned integer. Therefore, some
compilers will complain against the check for less than zero.
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ecp_smpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecp_smpl.c b/crypto/ec/ecp_smpl.c
index 30178f7fcd..4666a052bf 100644
--- a/crypto/ec/ecp_smpl.c
+++ b/crypto/ec/ecp_smpl.c
@@ -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;