1
0
Fork 0
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:
Andy Green 2019-08-07 07:13:41 +01:00
parent ace1f432f3
commit 7f6afa6985

View file

@ -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));