summaryrefslogtreecommitdiffstats
path: root/ssl/d1_enc.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-09-13 11:27:27 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-09-13 11:27:27 +0000
commit80afb40ae34594b23d3c2cbeb8f653aac4634eca (patch)
treecefa55bf1b9fe6af76ce2ac7be5cf09449bfca18 /ssl/d1_enc.c
parent3333428b44a0c4e21451cdaf6978933df3dd203a (diff)
Submitted by: Julia Lawall <julia@diku.dk>
The functions ENGINE_ctrl(), OPENSSL_isservice(), EVP_PKEY_sign(), CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error fix so the return code is checked correctly.
Diffstat (limited to 'ssl/d1_enc.c')
-rw-r--r--ssl/d1_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_enc.c b/ssl/d1_enc.c
index 7f3e57fc1e..8fa57347a9 100644
--- a/ssl/d1_enc.c
+++ b/ssl/d1_enc.c
@@ -155,7 +155,7 @@ int dtls1_enc(SSL *s, int send)
__FILE__, __LINE__);
else if ( EVP_CIPHER_block_size(ds->cipher) > 1)
{
- if (!RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)))
+ if (RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)) <= 0)
return -1;
}
}