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

sspc: make it clear we can only get RPAR_STREAMTYPE in WAIT_INITIAL_TX state

Otherwise Coverity will complain we only set up ssi in WAIT_INITIAL_TX
This commit is contained in:
Andy Green 2020-08-13 06:40:39 +01:00
parent d51e44388c
commit 54f98aff78

View file

@ -841,6 +841,15 @@ payload_ff:
if (par->ctr == sizeof(par->streamtype) - 1)
goto hangup;
/*
* We can only expect to get this if we ourselves are
* in the state that we're waiting for it. If it comes
* later it's a protocol error.
*/
if (*state != LPCSPROX_WAIT_INITIAL_TX)
goto hangup;
/*
* We're the proxy, creating an SS on behalf of a
* client