Skip to content

Commit 87a9e19

Browse files
committed
ssl: remove unnecessary GetOpenFile() check in SSLSocket#syswrite*
This is no longer necessary as of commit 22e601a (Remove usage of IO internals, 2023-05-29).
1 parent b068a89 commit 87a9e19

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,6 @@ ossl_ssl_write_internal_safe(VALUE _args)
20182018
VALUE opts = args[2];
20192019

20202020
SSL *ssl;
2021-
rb_io_t *fptr;
20222021
int num, nonblock = opts != Qfalse;
20232022
VALUE cb_state;
20242023

@@ -2027,7 +2026,6 @@ ossl_ssl_write_internal_safe(VALUE _args)
20272026
rb_raise(eSSLError, "SSL session is not started yet");
20282027

20292028
VALUE io = rb_attr_get(self, id_i_io);
2030-
GetOpenFile(io, fptr);
20312029

20322030
/* SSL_write(3ssl) manpage states num == 0 is undefined */
20332031
num = RSTRING_LENINT(str);

0 commit comments

Comments
 (0)