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:
Huw Davies 2006-06-20 14:27:00 +01:00 committed by Alexandre Julliard
parent 74b750d81b
commit 3a56eca1c7

View File

@ -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) {