mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
epmapper: Simplify _epm_Map()
We have a routine to compare ndr_syntax_id, don't do it manually. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Samuel Cabrero <scabrero@samba.org>
This commit is contained in:
parent
08757d213e
commit
895f459b4b
@ -1002,8 +1002,7 @@ error_status_t _epm_Map(struct pipes_struct *p,
|
||||
dcerpc_floor_get_lhs_data(&floors[1], &ifid);
|
||||
|
||||
if (floors[1].lhs.protocol != EPM_PROTOCOL_UUID ||
|
||||
!GUID_equal(&ifid.uuid, &ndr_transfer_syntax_ndr.uuid) ||
|
||||
ifid.if_version != ndr_transfer_syntax_ndr.if_version) {
|
||||
!ndr_syntax_id_equal(&ifid, &ndr_transfer_syntax_ndr)) {
|
||||
rc = EPMAPPER_STATUS_NO_MORE_ENTRIES;
|
||||
goto done;
|
||||
}
|
||||
|
@ -221,8 +221,7 @@ static error_status_t dcesrv_epm_Map(struct dcesrv_call_state *dce_call, TALLOC_
|
||||
dcerpc_floor_get_lhs_data(&r->in.map_tower->tower.floors[1], &ndr_syntax);
|
||||
|
||||
if (floors[1].lhs.protocol != EPM_PROTOCOL_UUID ||
|
||||
!GUID_equal(&ndr_syntax.uuid, &ndr_transfer_syntax_ndr.uuid) ||
|
||||
ndr_syntax.if_version != ndr_transfer_syntax_ndr.if_version) {
|
||||
!ndr_syntax_id_equal(&ndr_syntax, &ndr_transfer_syntax_ndr)) {
|
||||
goto failed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user