projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7cd3e
)
BUG/MINOR: trace: Test server existence for health-checks to get proxy
author
Christopher Faulet
<cfaulet@haproxy.com>
Wed, 8 Jun 2022 07:06:15 +0000
(09:06 +0200)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Wed, 8 Jun 2022 13:28:38 +0000
(15:28 +0200)
Email alerts are based on health-checks but with no server. Thus, in
__trace() function, responsible to write a trace message, we must be
prepared to have no server and thus no proxy.
This patch must be backported as far as 2.4.
src/trace.c
patch
|
blob
|
history
diff --git
a/src/trace.c
b/src/trace.c
index
541acf2
..
5909dd4
100644
(file)
--- a/
src/trace.c
+++ b/
src/trace.c
@@
-144,7
+144,7
@@
void __trace(enum trace_level level, uint64_t mask, struct trace_source *src,
}
if (check) {
srv = check->server;
- be = srv->proxy;
+ be = (srv ? srv->proxy : NULL);
}
if (!srv && conn)