commit | 56a91dddc62f790e3dd390fa90f22b0f53eaecd3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Sep 05 15:10:35 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Sep 05 20:01:23 2018 +0200 |
tree | 2df94e2c5200a31a5157f6244e6b3026bd291eae | |
parent | a21c0e60d24a7a10279a91a29b333f0421fe9107 [diff] |
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.
diff --git a/src/log.c b/src/log.c index 2613940..eaa8cf3 100644 --- a/src/log.c +++ b/src/log.c
@@ -1572,7 +1572,7 @@ { 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;