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

sspc: lws_sspc_handle_t pointer in wsi used after free

This commit is contained in:
Yichen Gu 2020-11-12 23:34:16 +08:00 committed by Andy Green
parent ce1bb10988
commit fc3c705c90

View file

@ -181,6 +181,7 @@ callback_sspc_client(struct lws *wsi, enum lws_callback_reasons reason,
case LWSSSSRET_DISCONNECT_ME:
return -1;
case LWSSSSRET_DESTROY_ME:
lws_set_opaque_user_data(wsi, NULL);
lws_sspc_destroy(&h);
return -1;
}