mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-01 11:01:46 +00:00
[BUG] server redirection used an uninitialized string.
This might have been introduced with chunk extensions. Note that the server redirect still does not work because http_get_path() cannot get the correct path once the request message is in the HTTP_MSG_DONE state (->som does not point to the start of message anymore).
This commit is contained in:
parent
1fac75385a
commit
59e0b0f972
@ -674,6 +674,7 @@ void perform_http_redirect(struct session *s, struct stream_interface *si)
|
||||
/* 1: create the response header */
|
||||
rdr.len = strlen(HTTP_302);
|
||||
rdr.str = trash;
|
||||
rdr.size = sizeof(trash);
|
||||
memcpy(rdr.str, HTTP_302, rdr.len);
|
||||
|
||||
/* 2: add the server's prefix */
|
||||
|
Loading…
Reference in New Issue
Block a user