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:
Michael Jumper 2018-09-10 00:25:49 -07:00
parent f72877bf0d
commit cbe593503f

View File

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