mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 20:31:00 +01:00
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:
parent
6ca89162dc
commit
4b1a05fcf8
@ -425,7 +425,7 @@ static void peers_trace(enum trace_level level, uint64_t mask,
|
|||||||
const struct peer *peer = a2;
|
const struct peer *peer = a2;
|
||||||
struct peers *peers = NULL;
|
struct peers *peers = NULL;
|
||||||
|
|
||||||
if (peer) {
|
if (peer && peer->appctx) {
|
||||||
struct stream_interface *si;
|
struct stream_interface *si;
|
||||||
|
|
||||||
si = peer->appctx->owner;
|
si = peer->appctx->owner;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user