rdpsnd server: seal stream before processing
If the stream is not sealed Stream_GetRemainingLength might return bogus values.
This commit is contained in:
parent
bbaecbd42d
commit
e603655048
@ -642,6 +642,7 @@ BOOL rdpsnd_server_handle_messages(RdpsndServerContext *context)
|
|||||||
if (priv->expectedBytes)
|
if (priv->expectedBytes)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
Stream_SealLength(s);
|
||||||
Stream_SetPosition(s, 0);
|
Stream_SetPosition(s, 0);
|
||||||
if (priv->waitingHeader)
|
if (priv->waitingHeader)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user