From 06461cac53a0dea39be37d4d9f9b4614b29af3b7 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 18 Feb 2022 13:40:15 -0800 Subject: [PATCH] GUACAMOLE-876: Test for open files only if filesystem has been allocated. --- src/protocols/rdp/channels/disp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocols/rdp/channels/disp.c b/src/protocols/rdp/channels/disp.c index 6e5c889d..70342ebd 100644 --- a/src/protocols/rdp/channels/disp.c +++ b/src/protocols/rdp/channels/disp.c @@ -281,7 +281,8 @@ int guac_rdp_disp_reconnect_needed(guac_rdp_disp* disp) { guac_rdp_client* rdp_client = (guac_rdp_client*) disp->client->data; /* Do not reconnect if files are open. */ - if (rdp_client->filesystem->open_files > 0) + if (rdp_client->filesystem != NULL + && rdp_client->filesystem->open_files > 0) return 0; /* Do not reconnect if an active print job is present */