[ruby-cvs:62295] rhe:r55132 (trunk): openssl: fix incorrect return value check of RAND_* functions

rhe at ruby-lang.org rhe at ruby-lang.org
Mon May 23 19:47:38 JST 2016


rhe	2016-05-23 19:47:37 +0900 (Mon, 23 May 2016)

  New Revision: 55132

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55132

  Log:
    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 at mail.ru>
      [ruby-core:63795] [Bug #10053]
      (ossl_pseudo_bytes): Similar, RAND_pseudo_bytes() may return 0 or
      -1 on failure.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_rand.c


More information about the ruby-cvs mailing list