rdpsnd server: seal stream before processing

If the stream is not sealed Stream_GetRemainingLength might return bogus
values.
This commit is contained in:
Bernhard Miklautz 2014-09-11 11:43:05 +02:00
parent bbaecbd42d
commit e603655048
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ BOOL rdpsnd_server_handle_messages(RdpsndServerContext *context)
if (priv->expectedBytes)
return TRUE;
Stream_SealLength(s);
Stream_SetPosition(s, 0);
if (priv->waitingHeader)
{