projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Submitted by: Julia Lawall <julia@diku.dk>
[openssl.git]
/
ssl
/
d1_enc.c
diff --git
a/ssl/d1_enc.c
b/ssl/d1_enc.c
index cf3332e4e43d530a6af491d0e056fac5ecca5f90..3dfa5adba3f92fa2928262f4d665a19802147107 100644
(file)
--- a/
ssl/d1_enc.c
+++ b/
ssl/d1_enc.c
@@
-151,7
+151,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;
}
}