1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

Restore erroneous modified assertion

This commit is contained in:
Zac He 2024-05-11 18:28:04 +08:00 committed by Andy Green
parent 8e84473e3c
commit e0f401c0ac

View file

@ -623,7 +623,10 @@ lws_callback_on_writable_all_protocol_vhost(const struct lws_vhost *vhost,
lws_dll2_get_head(&vhost->same_vh_protocol_owner[n])) {
wsi = lws_container_of(d, struct lws, same_vh_protocol);
assert(wsi->a.protocol == protocol);
assert(wsi->a.protocol &&
wsi->a.protocol->callback == protocol->callback &&
!strcmp(protocol->name, wsi->a.protocol->name));
lws_callback_on_writable(wsi);
} lws_end_foreach_dll_safe(d, d1);