return NULL;
}
-/*
- see if a uuid and if_version match to an interface
-*/
-static bool interface_match(const struct dcesrv_interface *if1,
- const struct dcesrv_interface *if2)
-{
- return (if1->syntax_id.if_version == if2->syntax_id.if_version &&
- GUID_equal(&if1->syntax_id.uuid, &if2->syntax_id.uuid));
-}
-
/*
find the interface operations on any endpoint with this binding
*/
struct dcesrv_endpoint *ep;
for (ep=dce_ctx->endpoint_list; ep; ep=ep->next) {
if (endpoints_match(ep->ep_description, binding)) {
- struct dcesrv_if_list *ifl;
- for (ifl=ep->interface_list; ifl; ifl=ifl->next) {
- if (interface_match(ifl->iface, iface)) {
- return ifl->iface;
- }
+ const struct dcesrv_interface *ret = NULL;
+
+ ret = find_interface_by_syntax_id(
+ ep, &iface->syntax_id);
+ if (ret != NULL) {
+ return ret;
}
}
}