mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +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 *fe = sess->fe;
|
||||||
struct proxy *be = s ? s->be : 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;
|
struct buffer chunk;
|
||||||
char *uri;
|
char *uri;
|
||||||
char *spc;
|
char *spc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user