mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
COVA10141: explicitly check there is a protocol set
This commit is contained in:
parent
7f6afa6985
commit
4da5b63e57
1 changed files with 2 additions and 1 deletions
|
@ -343,7 +343,8 @@ just_kill_connection:
|
|||
wsi->protocol_bind_balance && wsi->protocol) {
|
||||
lwsl_debug("%s: %p: DROP_PROTOCOL %s\n", __func__, wsi,
|
||||
wsi->protocol ? wsi->protocol->name: "NULL");
|
||||
wsi->protocol->callback(wsi,
|
||||
if (wsi->protocol)
|
||||
wsi->protocol->callback(wsi,
|
||||
wsi->role_ops->protocol_unbind_cb[
|
||||
!!lwsi_role_server(wsi)],
|
||||
wsi->user_space, (void *)__func__, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue