From 145cd2f51aadd8edc46b742dc46efabba4537300 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Fri, 1 Nov 2002 09:42:09 +0000 Subject: [PATCH] I don't see how *len > wanted, but leave the check there. Stick a comment in there as a 'Waldo was here' so that if I ever see this again, I realize that I've actually thought about it and didn't think > was necessary. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@97372 13f79535-47bb-0310-9956-ffa450edef68 --- ssl_engine_io.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 3928b892dcd..7718671427a 100644 --- a/ssl_engine_io.c +++ b/ssl_engine_io.c @@ -655,7 +655,10 @@ static apr_status_t ssl_io_input_read(bio_filter_in_ctx_t *inctx, inctx->cbuf.value -= bytes; inctx->cbuf.length += bytes; return APR_SUCCESS; - } + } + /* This could probably be *len == wanted, but be safe from stray + * photons. + */ if (*len >= wanted) { return APR_SUCCESS; } -- 2.47.2