mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
rpcrt4: Authentication padding should only be generated if there is authentication data.
This commit is contained in:
parent
29d3f1e15d
commit
e91da1458d
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ static RPC_STATUS RPCRT4_SendAuth(RpcConnection *Connection, RpcPktHdr *Header,
|
|||
Header->common.flags |= RPC_FLG_FIRST;
|
||||
Header->common.flags &= ~RPC_FLG_LAST;
|
||||
while (!(Header->common.flags & RPC_FLG_LAST)) {
|
||||
unsigned char auth_pad_len = ROUND_UP_AMOUNT(BufferLength, AUTH_ALIGNMENT);
|
||||
unsigned char auth_pad_len = AuthLength ? ROUND_UP_AMOUNT(BufferLength, AUTH_ALIGNMENT) : 0;
|
||||
unsigned short pkt_size = BufferLength + hdr_size + alen + auth_pad_len;
|
||||
|
||||
/* decide if we need to split the packet into fragments */
|
||||
|
|
Loading…
Reference in a new issue