MINOR: applet: Use unsafe version to get stream from SC in the trace function
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Apr 2023 06:48:16 +0000 (08:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Apr 2023 06:48:17 +0000 (08:48 +0200)
commit8eeec38bfa86bb126b026539e2b4744c73c701e2
treec45fbc891afdc4882339f2ab9601a65b29348cd8
parentb28ded19a496b522568285831555748da0d40615
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.
src/applet.c