Robert Shearman : rpcrt4:
Fix copying too much data from the buffer by not taking into account
the fact that auth_pad_len has been included in the fragment length .
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 23 06:11:58 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: dd362a62a1ae5e6fa0f66032d6a4fe7704ea0555
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=dd362a62a1ae5e6fa0f66032d6a4fe7704ea0555
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon May 22 12:02:04 2006 +0100
rpcrt4: Fix copying too much data from the buffer by not taking into account the fact that auth_pad_len has been included in the fragment length.
---
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 e19735d..ccf33fa 100644
--- a/dlls/rpcrt4/rpc_message.c
+++ b/dlls/rpcrt4/rpc_message.c
@@ -304,7 +304,7 @@ static RPC_STATUS RPCRT4_SendAuth(RpcCon
if (hdr_size == Header->common.frag_len)
goto write;
- memcpy(pkt + hdr_size, buffer_pos, Header->common.frag_len - hdr_size - alen);
+ memcpy(pkt + hdr_size, buffer_pos, Header->common.frag_len - hdr_size - auth_pad_len - alen);
/* add the authorization info */
if (Connection->AuthInfo && AuthLength)
More information about the wine-cvs
mailing list