GUACAMOLE-623: Do not return -1 from libwebsockets callback. Doing so results in automatic cleanup of part of the context, resulting in a segfault when lws_context_destroy() is invoked.
This commit is contained in:
parent
f72877bf0d
commit
cbe593503f
@ -109,7 +109,7 @@ static int guac_kubernetes_lws_callback(struct lws* wsi,
|
|||||||
* pointer passed by libwebsockets may be NULL for some events) */
|
* pointer passed by libwebsockets may be NULL for some events) */
|
||||||
guac_client* client = (guac_client*) user;
|
guac_client* client = (guac_client*) user;
|
||||||
if (client != NULL && client->state != GUAC_CLIENT_RUNNING)
|
if (client != NULL && client->state != GUAC_CLIENT_RUNNING)
|
||||||
return -1;
|
return lws_callback_http_dummy(wsi, reason, user, in, length);
|
||||||
|
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user