[WIP] This one is not working quite right..

This commit is contained in:
Nick Couchman 2020-04-05 16:42:14 -04:00
parent 2cec76f748
commit f4afa306d2

View File

@ -44,8 +44,13 @@ void guac_rdpsnd_process_receive(guac_rdp_common_svc* svc,
Stream_Seek_UINT8(input_stream); Stream_Seek_UINT8(input_stream);
Stream_Read_UINT16(input_stream, header.body_size); Stream_Read_UINT16(input_stream, header.body_size);
if (Stream_GetRemainingLength(input_stream) < header.body_size) if (Stream_GetRemainingLength(input_stream) < header.body_size) {
guac_client_debug(svc->client, GUAC_LOG_DEBUG, "Not enough bytes in stream."
" Remaining: %d, Body size: %d",
Stream_GetRemainingLength(input_stream),
header.body_size);
return; return;
}
/* /*
* If next PDU is SNDWAVE (due to receiving WaveInfo PDU previously), * If next PDU is SNDWAVE (due to receiving WaveInfo PDU previously),