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:
Willy Tarreau 2018-09-05 15:10:35 +02:00
parent a21c0e60d2
commit 56a91dddc6

View File

@ -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;