mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-24 10:20:52 -05:00
MINOR: log: make sess_build_logline() not dereference a NULL stream for txn
If the stream is NULL, the txn is NULL as well. This condition is already handled everywhere else.
This commit is contained in:
parent
a21c0e60d2
commit
56a91dddc6
1 changed files with 1 additions and 1 deletions
|
|
@ -1572,7 +1572,7 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t
|
|||
{
|
||||
struct proxy *fe = sess->fe;
|
||||
struct proxy *be = s ? s->be : fe;
|
||||
struct http_txn *txn = s->txn;
|
||||
struct http_txn *txn = s ? s->txn : NULL;
|
||||
struct buffer chunk;
|
||||
char *uri;
|
||||
char *spc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue