Commit 2c6bfc47 authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

* Actually we are adding 3 bytes to the string (two for the length in front

  and a \0 at the end) and not 2. So adjust the length check.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@409446 13f79535-47bb-0310-9956-ffa450edef68
parent 358ae9e3
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/proxy/ajp_msg.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ apr_status_t ajp_msg_append_string_ex(ajp_msg_t *msg, const char *value,
    }

    len = strlen(value);
    if ((msg->len + len + 2) > AJP_MSG_BUFFER_SZ) {
    if ((msg->len + len + 3) > AJP_MSG_BUFFER_SZ) {
        return ajp_log_overflow(msg, "ajp_msg_append_cvt_string");
    }