From ac9e5e91f62d8b9d4945a2e828e62db79c563411 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Mon, 4 May 2020 17:53:17 -0400 Subject: [PATCH] GUACAMOLE-1059: Remove bad check of audio stream against body_size. --- src/protocols/rdp/channels/rdpsnd/rdpsnd.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/protocols/rdp/channels/rdpsnd/rdpsnd.c b/src/protocols/rdp/channels/rdpsnd/rdpsnd.c index cc65a161..6050ddb4 100644 --- a/src/protocols/rdp/channels/rdpsnd/rdpsnd.c +++ b/src/protocols/rdp/channels/rdpsnd/rdpsnd.c @@ -56,14 +56,6 @@ void guac_rdpsnd_process_receive(guac_rdp_common_svc* svc, guac_rdpsnd_wave_handler(svc, input_stream, &header); return; } - - /* Check Stream size against body size */ - if (Stream_GetRemainingLength(input_stream) < header.body_size) { - guac_client_log(svc->client, GUAC_LOG_WARNING, "Audio Stream does not " - "contain the expected number of bytes. Sound may not work as " - "expected."); - return; - } /* Dispatch message to standard handlers */ switch (header.message_type) {