BUG/MINOR: peers: Possible appctx pointer dereference.

This bug may occur when enabling peers traces. It is possible that
peer->appctx is NULL when entering peer_session_release().
This commit is contained in:
Frdric Lcaille 2021-01-17 13:08:39 +01:00 committed by Willy Tarreau
parent 6ca89162dc
commit 4b1a05fcf8

View File

@ -425,7 +425,7 @@ static void peers_trace(enum trace_level level, uint64_t mask,
const struct peer *peer = a2;
struct peers *peers = NULL;
if (peer) {
if (peer && peer->appctx) {
struct stream_interface *si;
si = peer->appctx->owner;