mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
COVA11626: explicitly check there is a protocol set
This commit is contained in:
parent
ace1f432f3
commit
7f6afa6985
1 changed files with 1 additions and 1 deletions
|
@ -736,7 +736,7 @@ ads_known:
|
|||
|
||||
|
||||
oom4:
|
||||
if (lwsi_role_client(wsi) /* && lwsi_state_est(wsi) */) {
|
||||
if (lwsi_role_client(wsi) && wsi->protocol /* && lwsi_state_est(wsi) */) {
|
||||
wsi->protocol->callback(wsi,
|
||||
LWS_CALLBACK_CLIENT_CONNECTION_ERROR,
|
||||
wsi->user_space, (void *)cce, strlen(cce));
|
||||
|
|
Loading…
Add table
Reference in a new issue