From: Doug MacEachern Date: Sat, 30 Mar 2002 05:16:55 +0000 (+0000) Subject: input filter should not return failure when ssl runtime wants to read more X-Git-Tag: 2.0.34~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ada316e24bfa2926caaa4ed46b29d93e38dad1d9;p=apache input filter should not return failure when ssl runtime wants to read more git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94328 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index f372a48f3b..076d2770a3 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -495,6 +495,7 @@ static int ssl_io_hook_read(SSL *ssl, char *buf, int len) * renegotation which is handled implicitly by OpenSSL.) */ errno = EINTR; + rc = 0; /* non fatal error */ } else if (ssl_err == SSL_ERROR_SSL) { /* @@ -504,12 +505,8 @@ static int ssl_io_hook_read(SSL *ssl, char *buf, int len) ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR, "SSL error on reading data"); } - /* - * XXX - Just trying to reflect the behaviour in - * openssl_state_machine.c [mod_tls]. TBD - */ - rc = -1; } + return rc; }