]> 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:09:07 +0000 (13:09 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 7 Sep 2021 13:09:07 +0000 (13:09 +0000)
commit74c097f0e1d9ffce5a74f5b99a2cbfc349b65ec6
tree246bc9de355318e46d7b38cb4f99db626a19a31e
parente8dce10f62eacdca2daf3750223c17a91e3a3467
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@1893030 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/init_request_on_read_failure.txt [new file with mode: 0644]
server/protocol.c