mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity: 62477: explicitly check wsi->protocol even though client creation sets it
This commit is contained in:
parent
192b76c89b
commit
9745c5cca8
1 changed files with 4 additions and 0 deletions
|
@ -145,6 +145,10 @@ lws_client_connect_4_established(struct lws *wsi, struct lws *wsi_piggyback,
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* coverity */
|
||||
if (!wsi->a.protocol)
|
||||
return NULL;
|
||||
|
||||
#if defined(LWS_WITH_SOCKS5)
|
||||
if (lwsi_state(wsi) != LRS_ESTABLISHED)
|
||||
switch (lws_socks5c_greet(wsi, &cce)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue