projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca8916
)
BUG/MINOR: peers: Possible appctx pointer dereference.
author
Frédéric Lécaille
<flecaille@haproxy.com>
Sun, 17 Jan 2021 12:08:39 +0000
(13:08 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Sun, 17 Jan 2021 20:58:03 +0000
(21:58 +0100)
This bug may occur when enabling peers traces. It is possible that
peer->appctx is NULL when entering peer_session_release().
src/peers.c
patch
|
blob
|
history
diff --git
a/src/peers.c
b/src/peers.c
index
e5b1e57
..
754d73a
100644
(file)
--- a/
src/peers.c
+++ b/
src/peers.c
@@
-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;