]> granicus.if.org Git - apache/commitdiff
If we would exhaust the buffer entirely, set it to NULL rather than
authorJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 22 Jan 2002 06:26:07 +0000 (06:26 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 22 Jan 2002 06:26:07 +0000 (06:26 +0000)
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

index 916514c16be6e391e72296cf9e4324106339bd8d..20467937b981235b2b19bb0645493810a3bbd3c6 100644 (file)
@@ -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;