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:
parent
d51e44388c
commit
54f98aff78
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue