From: Justin Erenkrantz Date: Tue, 22 Jan 2002 06:26:07 +0000 (+0000) Subject: If we would exhaust the buffer entirely, set it to NULL rather than X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d5a405f903a372872f92fa8fbc278c398f0d8f2;p=thirdparty%2Fapache%2Fhttpd.git 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/modules/ssl@92967 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 916514c16be..20467937b98 100644 --- a/ssl_engine_io.c +++ b/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;