summaryrefslogtreecommitdiffstats
path: root/crypto/rsa
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-09-13 11:20:38 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-09-13 11:20:38 +0000
commite1246e1ad748ac17a6866b61619ca36a9f03c183 (patch)
tree496f84fb1c55d27e82c3aab43c311669dd1a6e52 /crypto/rsa
parentdf0b451d91eadebe8380f7bf255ecff6633e97f3 (diff)
Submitted by: Julia Lawall <julia@diku.dk>
The functions ENGINE_ctrl(), OPENSSL_isservice(), CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error fix so the return code is checked correctly.
Diffstat (limited to 'crypto/rsa')
-rw-r--r--crypto/rsa/rsa_pss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_pss.c b/crypto/rsa/rsa_pss.c
index 9b993aca49..2bda491a09 100644
--- a/crypto/rsa/rsa_pss.c
+++ b/crypto/rsa/rsa_pss.c
@@ -217,7 +217,7 @@ int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,
ERR_R_MALLOC_FAILURE);
goto err;
}
- if (!RAND_bytes(salt, sLen))
+ if (RAND_bytes(salt, sLen) <= 0)
goto err;
}
maskedDBLen = emLen - hLen - 1;