From 2bbf7ca3ab74b2e3a9b2e361fe56aeac1e2f4867 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 21 Oct 2022 11:24:59 +0200 Subject: Merging upstream version 1.7.2. Signed-off-by: Daniel Baumann --- src/protocol.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/protocol.c') diff --git a/src/protocol.c b/src/protocol.c index 5341c3d..cc0945b 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); -- cgit v1.2.3