mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-core: added second workaround for TSG packet
This commit is contained in:
parent
54243abaec
commit
7c628e5465
|
@ -1015,6 +1015,7 @@ int rpc_recv_pdu(rdpRpc* rpc)
|
|||
|
||||
printf("Fragmented PDU\n");
|
||||
|
||||
#if 0
|
||||
while (!(fragHeader.pfc_flags & PFC_LAST_FRAG))
|
||||
{
|
||||
bytesRead = 0;
|
||||
|
@ -1054,6 +1055,7 @@ int rpc_recv_pdu(rdpRpc* rpc)
|
|||
totalBytesRead += status;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (header->ptype == PTYPE_RTS) /* RTS PDU */
|
||||
|
@ -1366,7 +1368,7 @@ rdpRpc* rpc_new(rdpTransport* transport)
|
|||
rpc->ReceiveWindow = 0x00010000;
|
||||
rpc->VirtualConnection = rpc_client_virtual_connection_new(rpc);
|
||||
|
||||
rpc->call_id = 0;
|
||||
rpc->call_id = 1;
|
||||
}
|
||||
|
||||
return rpc;
|
||||
|
|
|
@ -1108,7 +1108,12 @@ int tsg_read(rdpTsg* tsg, BYTE* data, UINT32 length)
|
|||
|
||||
if (header->frag_length == 64)
|
||||
{
|
||||
printf("Ignoring 64-byte length PDU (probably TsProxySetupPipe return code)\n");
|
||||
printf("Ignoring 64-byte length PDU (probably TsProxySetupReceivePipe return code)\n");
|
||||
return tsg_read(tsg, data, length);
|
||||
}
|
||||
if (header->frag_length == 80)
|
||||
{
|
||||
printf("Ignoring 80-byte length PDU (probably TsProxySetupReceivePipe return code)\n");
|
||||
return tsg_read(tsg, data, length);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue