1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

fixed the rpc epmapper server. This fixes rpc over tcp.

(This used to be commit 6ac547fa5f)
This commit is contained in:
Andrew Tridgell 2004-01-09 02:43:23 +00:00
parent 7e6cf43756
commit 8fb8c40d3b

View File

@ -116,11 +116,28 @@ static uint32 build_ep_list(TALLOC_CTX *mem_ctx,
struct dcesrv_endpoint *endpoint_list,
struct dcesrv_ep_iface **eps)
{
struct dcesrv_endpoint *d;
uint32 total = 0;
(*eps) = NULL;
/* TODO */
for (d=endpoint_list; d; d=d->next) {
struct dcesrv_if_list *iface;
for (iface=d->interface_list;iface;iface=iface->next) {
(*eps) = talloc_realloc_p(mem_ctx, *eps,
struct dcesrv_ep_iface,
total + 1);
if (!*eps) {
return 0;
}
(*eps)[total].name = iface->iface.ndr->name;
(*eps)[total].uuid = iface->iface.ndr->uuid;
(*eps)[total].if_version = iface->iface.ndr->if_version;
(*eps)[total].ep_description = d->ep_description;
total++;
}
}
return total;
}