summaryrefslogtreecommitdiffstats
path: root/engines/ccgost
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2010-01-27 01:18:26 +0000
committerRichard Levitte <levitte@openssl.org>2010-01-27 01:18:26 +0000
commitd89b895cfd6ef96a4624af94729d6035b9ef326c (patch)
tree5a328ebdb6dd3cd5013488f98400eb97fb25e1d9 /engines/ccgost
parentd793c292cba537ad5c846bccd5174618b519b2dd (diff)
size_t doesn't compare less than zero...
Diffstat (limited to 'engines/ccgost')
-rw-r--r--engines/ccgost/gost94_keyx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gost94_keyx.c b/engines/ccgost/gost94_keyx.c
index 624be586a5..a183edbe8b 100644
--- a/engines/ccgost/gost94_keyx.c
+++ b/engines/ccgost/gost94_keyx.c
@@ -177,7 +177,7 @@ int pkey_GOST94cp_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
ASN1_OBJECT_free(gkt->key_agreement_info->cipher);
gkt->key_agreement_info->cipher = OBJ_nid2obj(param->nid);
*outlen = i2d_GOST_KEY_TRANSPORT(gkt,out?&out:NULL);
- if (*outlen <= 0)
+ if (*outlen == 0)
{
GOSTerr(GOST_F_PKEY_GOST94CP_ENCRYPT,GOST_R_ERROR_PACKING_KEY_TRANSPORT_INFO);
goto err;