mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 11:52:51 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user