1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-23 22:49:01 +03:00
Files
apache/changes-entries/remoteip-pp-eof.txt
Joe Orton 3f95bd3fe6 mod_remoteip: PROXY protocol: handle a peer going away before the header,
and test the LOCAL command.

* modules/metadata/mod_remoteip.c (remoteip_input_filter): Log EOF while
  reading the PROXY protocol header at info level, as the peer going away;
  other read errors are still logged as errors.  Skip metadata buckets
  rather than copying from them: the EOS bucket arriving before the EOF
  was passed to memcpy() as a NULL source.

* test/modules/metadata/test_004_remoteip.py (test_metadata_004_03,
  test_metadata_004_04, test_metadata_004_05, test_metadata_004_06): Test
  PROXY protocol v2 with the PROXY and LOCAL commands, with and without an
  address block, and a peer disconnecting after a partial header.

PR: 63893
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
GitHub: closes #805


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1938927 13f79535-47bb-0310-9956-ffa450edef68
2026-10-08 20:04:38 +00:00

5 lines
236 B
Plaintext

*) mod_remoteip: Log a connection closed before a complete PROXY protocol
header was received at info level rather than as an error, and fix an
undefined memcpy() with a NULL source in that case. PR 63893.
[Joe Orton]