From 67a0a1fe4612f7857da3adb229703b654e20539c Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 15 Mar 2016 22:11:06 -0700 Subject: [PATCH] GUAC-1164: Do not refer to disp member if it does not exist. --- src/protocols/rdp/rdp_disp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/protocols/rdp/rdp_disp.c b/src/protocols/rdp/rdp_disp.c index cd18cb39..c7ea64ab 100644 --- a/src/protocols/rdp/rdp_disp.c +++ b/src/protocols/rdp/rdp_disp.c @@ -38,8 +38,10 @@ guac_rdp_disp* guac_rdp_disp_alloc() { guac_rdp_disp* disp = malloc(sizeof(guac_rdp_disp)); +#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT /* Not yet connected */ disp->disp = NULL; +#endif /* No requests have been made */ disp->last_request = 0; @@ -174,7 +176,9 @@ void guac_rdp_disp_update_size(guac_rdp_disp* disp, /* Signal reconnect */ disp->reconnect_needed = 1; +#ifdef HAVE_FREERDP_DISPLAY_UPDATE_SUPPORT disp->disp = NULL; +#endif return; }