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:
Christopher Faulet 2023-04-06 08:48:16 +02:00
parent b28ded19a4
commit 8eeec38bfa

View File

@ -105,7 +105,7 @@ static void applet_trace(enum trace_level level, uint64_t mask, const struct tra
sc = appctx_sc(appctx); sc = appctx_sc(appctx);
if (sc) { if (sc) {
s = sc_strm(sc); s = __sc_strm(sc);
sco = sc_opposite(sc); sco = sc_opposite(sc);
ic = sc_ic(sc); ic = sc_ic(sc);
oc = sc_oc(sc); oc = sc_oc(sc);