diff options
author | Bodo Möller <bodo@openssl.org> | 2001-03-15 12:30:55 +0100 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-03-15 12:30:55 +0100 |
commit | 85628011377732dbc88a00c7ef7fb6e53aff921d (patch) | |
tree | 0ca7c073ef85e5e44ef5d3b259c031cebb5390b6 /crypto/rand | |
parent | More error_data memory leaks (diff) | |
download | openssl-85628011377732dbc88a00c7ef7fb6e53aff921d.tar.xz openssl-85628011377732dbc88a00c7ef7fb6e53aff921d.zip |
error codes are longs, not ints
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/md_rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index d3261a028c..98c6a39f5d 100644 --- 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(); |