summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-01-24 12:35:07 +0100
committerVolker Lendecke <vl@samba.org>2021-01-28 16:58:35 +0000
commit895f459b4b2f347223f5b524d6b79090654cd1f4 (patch)
treedc9f12748b55e51c0213cc61fc5a63c42387e6dd /source3/rpc_server
parent08757d213ee016dfa958d393ef41d7aa66756132 (diff)
downloadsamba-895f459b4b2f347223f5b524d6b79090654cd1f4.tar.gz
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>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/epmapper/srv_epmapper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c
index 6d4d2d065b9..6164e221ca0 100644
--- a/source3/rpc_server/epmapper/srv_epmapper.c
+++ b/source3/rpc_server/epmapper/srv_epmapper.c
@@ -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;
}