mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-03 18:52:04 +00:00
CLEANUP: http-ana: Remove useless test on txn when the error message is retrieved
In http_error_message(), the HTTP txn is always defined. So, this is no reason to test its nullity. This patch partially fixes the issue #457.
This commit is contained in:
parent
7cde96c829
commit
53a87e134e
@ -4603,7 +4603,7 @@ struct buffer *http_error_message(struct stream *s)
|
||||
{
|
||||
const int msgnum = http_get_status_idx(s->txn->status);
|
||||
|
||||
if (s->txn && s->txn->errmsg)
|
||||
if (s->txn->errmsg)
|
||||
return s->txn->errmsg;
|
||||
else if (s->be->errmsg[msgnum])
|
||||
return s->be->errmsg[msgnum];
|
||||
|
Loading…
Reference in New Issue
Block a user