summaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-21 09:24:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-21 09:24:51 +0000
commit97d4bdd0effbdc675e8c136ed72c43e7898385d8 (patch)
tree9bbb2849cc74e0751e4eb9e122dd3e9d5c23be2d /src/protocol.c
parentAdding upstream version 1.7.1. (diff)
downloadttyd-97d4bdd0effbdc675e8c136ed72c43e7898385d8.tar.xz
ttyd-97d4bdd0effbdc675e8c136ed72c43e7898385d8.zip
Adding upstream version 1.7.2.upstream/1.7.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c1
1 files changed, 1 insertions, 0 deletions
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);