Commit ec996cb2 authored by Joe Orton's avatar Joe Orton
Browse files

* modules/proxy/ajp_header.c (sc_for_req_header): Zero-initialize

  buffer to avoid potential (harmless) memcmp comparison against
  garbage stack data later.  (clang warning).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842881 13f79535-47bb-0310-9956-ffa450edef68
parent 4a663524
Loading
Loading
Loading
Loading
+1 −0
Changes for modules/proxy/ajp_header.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ static int sc_for_req_header(const char *header_name)
    if (len < 4 || len > 15)
        return UNKNOWN_METHOD;

    memset(header, 0, sizeof header);
    while (*p)
        header[i++] = apr_toupper(*p++);
    header[i] = '\0';