mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
MINOR: applet: Use unsafe version to get stream from SC in the trace function
When a trace message for an applet is dumped, if the SC exists, the stream always exists too. There is no way to attached an applet to a health-check. So, we can use the unsafe version __sc_strm() to get the stream. This patch is related to #2106. Not sure it will be enough for Coverity. However, there is no bug here.
This commit is contained in:
parent
b28ded19a4
commit
8eeec38bfa
@ -105,7 +105,7 @@ static void applet_trace(enum trace_level level, uint64_t mask, const struct tra
|
||||
|
||||
sc = appctx_sc(appctx);
|
||||
if (sc) {
|
||||
s = sc_strm(sc);
|
||||
s = __sc_strm(sc);
|
||||
sco = sc_opposite(sc);
|
||||
ic = sc_ic(sc);
|
||||
oc = sc_oc(sc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user