]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
core: Initialize the request fields on read failure to avoid NULLs.
authorYann Ylavic <ylavic@apache.org>
Tue, 7 Sep 2021 13:00:06 +0000 (13:00 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 7 Sep 2021 13:00:06 +0000 (13:00 +0000)
commitd4f195853b895eefcc5632463f4a2c1062d1d08a
treec6ad100a232273d49734d09f714ca10a6d6e2b61
parent22895e737d9545985464d8868d7cb05f68df912c
core: Initialize the request fields on read failure to avoid NULLs.

* server/protocol.c(read_request_line):
  Set r->method_number to M_INVALID and r->{method,uri,unparsed_uri} to "-"
  when read fails, ap_parse_request_line() will never be called.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893026 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/init_request_on_read_failure.txt [new file with mode: 0644]
server/protocol.c