mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
rpcrt4: Don't use a short to hold the packet length, since it can
result in premature termination of the send.
This commit is contained in:
parent
74b750d81b
commit
3a56eca1c7
@ -282,7 +282,7 @@ static RPC_STATUS RPCRT4_SendAuth(RpcConnection *Connection, RpcPktHdr *Header,
|
||||
Header->common.flags &= ~RPC_FLG_LAST;
|
||||
while (!(Header->common.flags & RPC_FLG_LAST)) {
|
||||
unsigned char auth_pad_len = AuthLength ? ROUND_UP_AMOUNT(BufferLength, AUTH_ALIGNMENT) : 0;
|
||||
unsigned short pkt_size = BufferLength + hdr_size + alen + auth_pad_len;
|
||||
unsigned int pkt_size = BufferLength + hdr_size + alen + auth_pad_len;
|
||||
|
||||
/* decide if we need to split the packet into fragments */
|
||||
if (pkt_size <= Connection->MaxTransmissionSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user