error codes are longs, not ints
This commit is contained in:
parent
5d8094143e
commit
8562801137
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue