diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-23 10:47:37 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-23 10:47:37 +0000 |
commit | bb900ff48b2358003c8b46d4699212a3c28aa8db (patch) | |
tree | 5af9e585dcd086019bd50048e8dfa0e837135b0f /goruby.c | |
parent | d29cd7ac3ca1e9c912e11f3a8251e302ea52e16c (diff) | |
download | ruby-bb900ff48b2358003c8b46d4699212a3c28aa8db.tar.gz |
openssl: fix incorrect return value check of RAND_* functions
* ext/openssl/ossl_rand.c (ossl_rand_egd, ossl_rand_egd_bytes):
RAND_egd{_bytes,}() return -1 on failure, not 0.
Patch by cremno phobia <cremno@mail.ru>
[ruby-core:63795] [Bug #10053]
(ossl_pseudo_bytes): Similar, RAND_pseudo_bytes() may return 0 or
-1 on failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'goruby.c')
0 files changed, 0 insertions, 0 deletions