Commit 6a11aba5 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

rpcrt4: Skip over the right-hand-side data for the protocol floor so

that we can parse the towers received from native rpcrt4.
parent da441263
......@@ -864,10 +864,12 @@ RPC_STATUS RpcTransport_ParseTopOfTower(const unsigned char *tower_data,
if ((protocol_floor->count_lhs != sizeof(protocol_floor->protid)) ||
(protocol_floor->count_rhs > tower_size))
return EPT_S_NOT_REGISTERED;
tower_data += protocol_floor->count_rhs;
tower_size -= protocol_floor->count_rhs;
floor4 = (twr_empty_floor_t *)tower_data;
if ((tower_size < sizeof(*floor4)) ||
(floor4->count_lhs != sizeof(protocol_floor->protid)))
(floor4->count_lhs != sizeof(floor4->protid)))
return EPT_S_NOT_REGISTERED;
for(i = 0; i < MAX_PROTSEQ; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment