From af117f2f16f05858746e0c7cecbe1d237e47fa28 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Tue, 22 Jan 2002 06:26:07 +0000 Subject: [PATCH] If we would exhaust the buffer entirely, set it to NULL rather than point at the end of the buffer with a length of 0. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92967 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 916514c16b..20467937b9 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -321,7 +321,7 @@ static int char_buffer_read(char_buffer_t *buffer, char *in, int inl) return 0; } - if (buffer->length >= inl) { + if (buffer->length > inl) { /* we have have enough to fill the caller's buffer */ memcpy(in, buffer->value, inl); buffer->value += inl; -- 2.50.1