mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge pull request #769 from sungjungk/fix-return-handling
Add error-handling routine for arc4_seed()
This commit is contained in:
commit
8d5b14d428
@ -379,7 +379,9 @@ arc4_stir(void)
|
||||
rs_initialized = 1;
|
||||
}
|
||||
|
||||
arc4_seed();
|
||||
if (0 != arc4_seed())
|
||||
return -1;
|
||||
|
||||
if (!arc4_seeded_ok)
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user