From 69b63fcfd7490c2bf48eb6332028f98848be74ac Mon Sep 17 00:00:00 2001 From: Dustin Martin Date: Tue, 23 Aug 2022 07:00:46 -0700 Subject: [PATCH] protocol: ignore resize message if process freed (#968) --- src/protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol.c b/src/protocol.c index 5341c3d3..cc0945b6 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -314,6 +314,7 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user, } break; case RESIZE_TERMINAL: + if (pss->process == NULL) break; json_object_put( parse_window_size(pss->buffer + 1, pss->len - 1, &pss->process->columns, &pss->process->rows)); pty_resize(pss->process);