BUG/MEDIUM: debug: address a possible null pointer dereference in "debug dev stream"
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Oct 2019 08:06:55 +0000 (10:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Oct 2019 08:10:07 +0000 (10:10 +0200)
commitb2fee0406ddf7dfc3a29617ac2eccf20d7ebd03e
treed490bcc03724f0fb106778d0577eb24ab2d4bbde
parent9b013701f11982b8b644eddb91e5270ed0bb9b51
BUG/MEDIUM: debug: address a possible null pointer dereference in "debug dev stream"

As reported in issue #343, there is one case where a NULL stream can
still be dereferenced, when getting &s->txn->flags. Let's protect all
assignments to stay on the safe side for future additions.

No backport is needed.
src/debug.c