Skip to content

Commit 74d2861

Browse files
committed
check errors if handle_events fails
1 parent 89cd157 commit 74d2861

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ext/openssl/ossl_ssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,8 @@ ossl_ssl_handle_events(VALUE self)
29622962
SSL *ssl;
29632963

29642964
GetSSL(self, ssl);
2965-
SSL_handle_events(ssl);
2965+
if (!SSL_handle_events(ssl))
2966+
ossl_raise(eSSLError, "SSL_handle_events");
29662967

29672968
return Qnil;
29682969
}

0 commit comments

Comments
 (0)