Commit 1d5a405f authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

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
parent b700eac1
Loading
Loading
Loading
Loading
+1 −1
Changes for ssl_engine_io.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;