diff options
-rw-r--r-- | ext/openssl/ossl_ssl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index d84c92498f..3bb209ce27 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -443,15 +443,12 @@ ossl_start_ssl(SSL *ssl, int (*func)()) for(;;){ if((ret = func(ssl)) > 0) break; switch(SSL_get_error(ssl, ret)){ - case SSL_ERROR_NONE: - break; case SSL_ERROR_WANT_WRITE: case SSL_ERROR_WANT_READ: - case SSL_ERROR_WANT_X509_LOOKUP: rb_thread_schedule(); continue; default: - ossl_raise(eSSLError, "SSL_accept:"); + ossl_raise(eSSLError, NULL); } } } |