mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02: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
@ -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…
x
Reference in New Issue
Block a user