projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc9b885
)
read_http_request_body(): Fix two error messages that used an incorrect variable
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 27 Mar 2021 04:49:05 +0000
(
05:49
+0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Wed, 10 Nov 2021 02:19:52 +0000
(
03:19
+0100)
jcc.c
patch
|
blob
|
history
diff --git
a/jcc.c
b/jcc.c
index
5ddf184
..
224e28d
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-2080,12
+2080,13
@@
static int read_http_request_body(struct client_state *csp)
if (to_read != 0)
{
if (to_read != 0)
{
- log_error(LOG_LEVEL_CONNECT, "Not enough request body has been read: expected %llu more bytes",
- csp->expected_client_content_length);
+ log_error(LOG_LEVEL_CONNECT,
+ "Not enough request body has been read: expected %lu more bytes",
+ to_read);
return 1;
}
return 1;
}
- log_error(LOG_LEVEL_CONNECT,
"The last %llu bytes of the request body have been read",
-
csp->expected_client_content_length
);
+ log_error(LOG_LEVEL_CONNECT,
+
"The last %d bytes of the request body have been read", len
);
return 0;
}
return 0;
}