summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-05-07 23:21:56 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-05-07 23:21:56 +0200
commita3b990fba2bc9f94b5c8fb00e20b51a8bf8bc0b8 (patch)
treeac46c2c04938c96f3d34a571af746d70fc3df715
parent10f199487ebe676f25936e991c2a27a1659d5e67 (diff)
downloadhittpd-a3b990fba2bc9f94b5c8fb00e20b51a8bf8bc0b8.tar.gz
hittpd-a3b990fba2bc9f94b5c8fb00e20b51a8bf8bc0b8.tar.xz
hittpd-a3b990fba2bc9f94b5c8fb00e20b51a8bf8bc0b8.zip
send_error: fix logged length
-rw-r--r--hittpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c
index 881d9b9..2d47f29 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -291,7 +291,7 @@ send_error(http_parser *p, int status, const char *msg)
 	    "\r\n",
 	    p->http_minor,
 	    status, msg,
-	    4 + strlen(msg) + 2,
+	    (data->last = 4 + strlen(msg) + 2),
 	    now);
 
 	if (p->method != HTTP_HEAD)