1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

coverity: mark false positive

Coverity doesn't understand the state relationship means that ssi will only
be used to create the proxy-side SS representing the remote client SS,
which happens as the first command in the state flow.

Mark the call up to disable the false error report.
This commit is contained in:
Andy Green 2022-01-28 10:19:10 +00:00
parent 1b77c2ff4c
commit b709d50f8f

View file

@ -487,6 +487,7 @@ callback_ss_proxy(struct lws *wsi, enum lws_callback_reasons reason,
ssi.state = ss_proxy_onward_state;
ssi.flags = 0;
// coverity[uninit_use_in_call]
n = lws_ss_deserialize_parse(&conn->parser,
lws_get_context(wsi), conn->dsh, in, len,
&conn->state, conn, &conn->ss, &ssi, 0);