mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-18 11:47:03 +00: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;
|
||||
struct peers *peers = NULL;
|
||||
|
||||
if (peer) {
|
||||
if (peer && peer->appctx) {
|
||||
struct stream_interface *si;
|
||||
|
||||
si = peer->appctx->owner;
|
||||
|
Loading…
Reference in New Issue
Block a user