rpcrt4: Skip over the right-hand-side data for the protocol floor so
that we can parse the towers received from native rpcrt4.
This commit is contained in:
parent
da44126395
commit
6a11aba526
|
@ -864,10 +864,12 @@ RPC_STATUS RpcTransport_ParseTopOfTower(const unsigned char *tower_data,
|
||||||
if ((protocol_floor->count_lhs != sizeof(protocol_floor->protid)) ||
|
if ((protocol_floor->count_lhs != sizeof(protocol_floor->protid)) ||
|
||||||
(protocol_floor->count_rhs > tower_size))
|
(protocol_floor->count_rhs > tower_size))
|
||||||
return EPT_S_NOT_REGISTERED;
|
return EPT_S_NOT_REGISTERED;
|
||||||
|
tower_data += protocol_floor->count_rhs;
|
||||||
|
tower_size -= protocol_floor->count_rhs;
|
||||||
|
|
||||||
floor4 = (twr_empty_floor_t *)tower_data;
|
floor4 = (twr_empty_floor_t *)tower_data;
|
||||||
if ((tower_size < sizeof(*floor4)) ||
|
if ((tower_size < sizeof(*floor4)) ||
|
||||||
(floor4->count_lhs != sizeof(protocol_floor->protid)))
|
(floor4->count_lhs != sizeof(floor4->protid)))
|
||||||
return EPT_S_NOT_REGISTERED;
|
return EPT_S_NOT_REGISTERED;
|
||||||
|
|
||||||
for(i = 0; i < MAX_PROTSEQ; i++)
|
for(i = 0; i < MAX_PROTSEQ; i++)
|
||||||
|
|
Loading…
Reference in New Issue