From b812cc19a9f7e20b322ac365cfa1cf9f65c7bfb3 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 21 Nov 2014 15:46:50 -0800 Subject: [PATCH] GUAC-865: Establish lock before sending size update. --- src/protocols/rdp/guac_handlers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocols/rdp/guac_handlers.c b/src/protocols/rdp/guac_handlers.c index 0e5b219a..99dafd0d 100644 --- a/src/protocols/rdp/guac_handlers.c +++ b/src/protocols/rdp/guac_handlers.c @@ -469,7 +469,9 @@ int rdp_guac_client_size_handler(guac_client* client, int width, int height) { freerdp* rdp_inst = guac_client_data->rdp_inst; /* Send display update */ + pthread_mutex_lock(&(guac_client_data->rdp_lock)); guac_rdp_disp_send_size(rdp_inst->context, width, height); + pthread_mutex_unlock(&(guac_client_data->rdp_lock)); #endif return 0;