Commit a3d28fc0 authored by Mladen Turk's avatar Mladen Turk
Browse files

If the r->method_number is unknown the r->method

is unknown or corrupted as well. Log the method number
that was not recognized.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@451951 13f79535-47bb-0310-9956-ffa450edef68
parent 36b5b686
Loading
Loading
Loading
Loading
+2 −2
Changes for modules/proxy/ajp_header.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -220,8 +220,8 @@ static apr_status_t ajp_marshal_into_msgb(ajp_msg_t *msg,

    if ((method = sc_for_req_method_by_id(r->method_number)) == UNKNOWN_METHOD) {
        ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
               "ajp_marshal_into_msgb - No such method %s",
               r->method);
               "ajp_marshal_into_msgb - No such method number %s",
               r->method_number);
        return AJP_EBAD_METHOD;
    }