[Bug 21106] RPC clients that connect via ncacn_ip_tcp to a Windows RPC server are broken

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 18 08:06:58 CST 2010


http://bugs.winehq.org/show_bug.cgi?id=21106





--- Comment #7 from Stefan Kuhr <winesku at googlemail.com>  2010-01-18 08:06:57 ---
I have meanwhile found out, which exact change in the changeset, that I
determined via git bisect, had introduced this regression. It is the change in
RPCRT4_BuildAuthHeader where 

header->common.frag_len = 0x14;

had been replaced with 

header->common.frag_len = sizeof(header->common);

sizeof(header->common) is 0x10 bytes and this is probably something that
windows RPC servers do not like. So if I replace in my current local git
repository sizeof(header->common) again with 0x14 in this assignment,
everything works again as before. I dunno if the 12 bytes of extra allocation
for HeapAlloc need to be reapplied again if things are reverted in this
function, it didn't seem to be necessary in my case. Setting
header->common.auth_len to zero is most probably not necessary as well since it
is taken care of with the HeapAlloc statement and initialization to zero. So
everything that needs to be done is setting header->common.frag_len to 0x14, at
least this is, what my tests tell me.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list