]> granicus.if.org Git - apache/commitdiff
input filter should not return failure when ssl runtime wants to read more
authorDoug MacEachern <dougm@apache.org>
Sat, 30 Mar 2002 05:16:55 +0000 (05:16 +0000)
committerDoug MacEachern <dougm@apache.org>
Sat, 30 Mar 2002 05:16:55 +0000 (05:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94328 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_io.c

index f372a48f3ba0d6a1e3a8d5d0c83dd7f9a0a0a809..076d2770a3e087b785892c33afddb571592335b4 100644 (file)
@@ -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;
 }