mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
proxy: Reset stream position before length check
This commit is contained in:
committed by
David Fort
parent
ed53038daa
commit
8a06ed9299
@@ -81,9 +81,9 @@ static BOOL pf_channel_client_write_iostatus(wStream* out, const SMARTCARD_OPERA
|
||||
WINPR_ASSERT(out);
|
||||
|
||||
pos = Stream_GetPosition(out);
|
||||
Stream_SetPosition(out, 0);
|
||||
if (!Stream_CheckAndLogRequiredLength(TAG, out, 16))
|
||||
return FALSE;
|
||||
Stream_SetPosition(out, 0);
|
||||
|
||||
Stream_Read_UINT16(out, component);
|
||||
Stream_Read_UINT16(out, packetid);
|
||||
|
||||
Reference in New Issue
Block a user