mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-18 01:14:38 +00:00
BUG/MINOR: log: fix a typo that would cause %HP to log <BADREQ>
Typo was introduced in 57bc891
("BUG/MEDIUM: log: fix risk of
segfault when logging HTTP fields in TCP mode") which inverted the
condition in the test and caused <BADREQ> to be logged when using
%HP.
Signed-off-by: Nenad Merdanovic <nmerdan@anine.io>
This commit is contained in:
parent
0b64f62a69
commit
54e439f0b4
@ -1917,7 +1917,7 @@ int build_logline(struct stream *s, char *dst, size_t maxsize, struct list *list
|
||||
while (spc < end && *spc != '?' && !HTTP_IS_SPHT(*spc))
|
||||
spc++;
|
||||
|
||||
if (!txn || txn->uri || nspaces == 0) {
|
||||
if (!txn || !txn->uri || nspaces == 0) {
|
||||
chunk.str = "<BADREQ>";
|
||||
chunk.len = strlen("<BADREQ>");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user