diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2015-12-30 07:17:05 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2015-12-30 07:17:05 +0900 |
commit | 4862ab9e21a6962a96af2e6193f7889de61299c8 (patch) | |
tree | d942dce87ce04713cb9a65a5d2dc5974499d2927 /ext/openssl/ossl_bio.c | |
parent | 19b2ea9a5e5c8c21869665edcc6fd79622747b28 (diff) | |
download | ruby-openssl-4862ab9e21a6962a96af2e6193f7889de61299c8.tar.gz |
sync code from upstream
Diffstat (limited to 'ext/openssl/ossl_bio.c')
-rw-r--r-- | ext/openssl/ossl_bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/ossl_bio.c b/ext/openssl/ossl_bio.c index 7e3b3070..cd258264 100644 --- a/ext/openssl/ossl_bio.c +++ b/ext/openssl/ossl_bio.c @@ -29,8 +29,9 @@ ossl_obj2bio(VALUE obj) } rb_update_max_fd(fd); if (!(fp = fdopen(fd, "r"))){ + int e = errno; close(fd); - rb_sys_fail(0); + rb_syserr_fail(e, 0); } if (!(bio = BIO_new_fp(fp, BIO_CLOSE))){ fclose(fp); |