BUG/MINOR: http: Use out buffer instead of trash to display error snapshot

the function http_show_error_snapshot() must not use the trash buffer to append
the HTTP error description. Instead, it must use the <out> buffer, its first
argument. Note that concretely, this function always succeeds because <out> is
always the trash buffer.
This commit is contained in:
Christopher Faulet 2018-11-29 22:53:30 +01:00 committed by Willy Tarreau
parent 7805e2bc1f
commit ed26fb8ac8

View File

@ -7421,7 +7421,7 @@ int stats_check_uri(struct stream_interface *si, struct http_txn *txn, struct pr
*/
void http_show_error_snapshot(struct buffer *out, const struct error_snapshot *es)
{
chunk_appendf(&trash,
chunk_appendf(out,
" stream #%d, stream flags 0x%08x, tx flags 0x%08x\n"
" HTTP msg state %s(%d), msg flags 0x%08x\n"
" HTTP chunk len %lld bytes, HTTP body len %lld bytes, channel flags 0x%08x :\n",