Robert Shearman : rpcrt4:
Authentication padding should only be generated if there is
authentication data .
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 23 06:11:58 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: e91da1458dc8d361f84dde5406e1a587608cb16e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e91da1458dc8d361f84dde5406e1a587608cb16e
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon May 22 12:02:13 2006 +0100
rpcrt4: Authentication padding should only be generated if there is authentication data.
---
dlls/rpcrt4/rpc_message.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c
index f18cd47..e19735d 100644
--- a/dlls/rpcrt4/rpc_message.c
+++ b/dlls/rpcrt4/rpc_message.c
@@ -281,7 +281,7 @@ static RPC_STATUS RPCRT4_SendAuth(RpcCon
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 */
More information about the wine-cvs
mailing list