Commit 3a56eca1 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

rpcrt4: Don't use a short to hold the packet length, since it can

result in premature termination of the send.
parent 74b750d8
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment