From a3d9a685e835b260eb8532493b1adb50bb27e17b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 11 Jan 2020 20:18:27 -0800 Subject: [PATCH] GUACAMOLE-249: Handle failure to send either response required for monitor ready. --- src/protocols/rdp/channels/cliprdr.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/channels/cliprdr.c b/src/protocols/rdp/channels/cliprdr.c index 3ca41ce2..5841cf18 100644 --- a/src/protocols/rdp/channels/cliprdr.c +++ b/src/protocols/rdp/channels/cliprdr.c @@ -138,8 +138,12 @@ static UINT guac_rdp_cliprdr_monitor_ready(CliprdrClientContext* cliprdr, guac_client_log(clipboard->client, GUAC_LOG_TRACE, "CLIPRDR: Received " "monitor ready."); - /* Respond with capabilities and supported format list */ - guac_rdp_cliprdr_send_capabilities(cliprdr); + /* Respond with capabilities ... */ + int status = guac_rdp_cliprdr_send_capabilities(cliprdr); + if (status != CHANNEL_RC_OK) + return status; + + /* ... and supported format list */ return guac_rdp_cliprdr_send_format_list(cliprdr); }