projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba61b14
)
Error codes are longs, not ints
author
Bodo Möller
<bodo@openssl.org>
Thu, 15 Mar 2001 11:33:16 +0000
(11:33 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 15 Mar 2001 11:33:16 +0000
(11:33 +0000)
crypto/rand/md_rand.c
patch
|
blob
|
history
diff --git
a/crypto/rand/md_rand.c
b/crypto/rand/md_rand.c
index d167dea77db6485bd14427dfb78bb3c6e8c9b1d5..567838f6c334311c1b2355f9cc7f9cbc75c52f95 100644
(file)
--- a/
crypto/rand/md_rand.c
+++ b/
crypto/rand/md_rand.c
@@
-482,12
+482,12
@@
static int ssleay_rand_bytes(unsigned char *buf, int num)
unpredictable */
static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num)
{
- int ret
, err
;
+ int ret;
ret = RAND_bytes(buf, num);
if (ret == 0)
{
- err = ERR_peek_error();
+
long
err = ERR_peek_error();
if (ERR_GET_LIB(err) == ERR_LIB_RAND &&
ERR_GET_REASON(err) == RAND_R_PRNG_NOT_SEEDED)
(void)ERR_get_error();