mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-09 20:34:22 +01:00
protocol: fix potential pty buf leak
This commit is contained in:
@@ -56,6 +56,11 @@ struct pss_tty {
|
||||
int lws_close_status;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct pss_tty *pss;
|
||||
bool ws_closed;
|
||||
} pty_ctx_t ;
|
||||
|
||||
struct server {
|
||||
int client_count; // client count
|
||||
char *prefs_json; // client preferences
|
||||
|
||||
Reference in New Issue
Block a user