summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2023-01-10 13:18:26 +0000
committerEric Covener <covener@apache.org>2023-01-10 13:18:26 +0000
commit2192bd4200083a0d20bf601c2fc9d635e7e4dbfc (patch)
tree3598b8d68ba81bddc4f8a5bad8e5abdc9fb7a5f0 /server
parent68b50be1595610514576153f425fb58bc08d8ae6 (diff)
downloadhttpd-2192bd4200083a0d20bf601c2fc9d635e7e4dbfc.tar.gz
fail on bad header
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906539 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/protocol.c b/server/protocol.c
index 3c33ec9b5f..9ca80f6248 100644
--- a/server/protocol.c
+++ b/server/protocol.c
@@ -514,6 +514,8 @@ cleanup:
/* PR#43039: We shouldn't accept NULL bytes within the line */
bytes_handled = strlen(*s);
if (bytes_handled < *read) {
+ ap_log_data(APLOG_MARK, APLOG_DEBUG, ap_server_conf,
+ "NULL bytes in header", *s, *read, 0);
*read = bytes_handled;
if (rv == APR_SUCCESS) {
rv = APR_EINVAL;