diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-12-13 23:25:15 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-12-13 23:25:15 +0000 |
commit | d262b8c3c79b2fbb0bf8c330d765f89210948a26 (patch) | |
tree | 0492a6fa66101b94f5dc368480c2ab027e4f8b77 /source4/rpc_server/epmapper | |
parent | 8d79eb52f104d023122de3965592b4ea36adbb2b (diff) | |
download | samba-d262b8c3c79b2fbb0bf8c330d765f89210948a26.tar.gz samba-d262b8c3c79b2fbb0bf8c330d765f89210948a26.tar.xz samba-d262b8c3c79b2fbb0bf8c330d765f89210948a26.zip |
completed the linkage between the endpoint mapper and the dcerpc
server endpoints. We can now successfully setup listening endpoints on
high ports, then use our endpoint mapper redirect incoming clients to
the right port.
also greatly cleanup the rpc over tcp session handling.
(This used to be commit 593bc29bbe0e46d356d001160e8a3332a88f2fa8)
Diffstat (limited to 'source4/rpc_server/epmapper')
-rw-r--r-- | source4/rpc_server/epmapper/rpc_epmapper.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c index 32a239f44df..43e4d4514f8 100644 --- a/source4/rpc_server/epmapper/rpc_epmapper.c +++ b/source4/rpc_server/epmapper/rpc_epmapper.c @@ -118,6 +118,10 @@ static uint32 build_ep_list(TALLOC_CTX *mem_ctx, struct dcesrv_ep_iface *e; int count = d->endpoint_ops->lookup_endpoints(mem_ctx, &e); if (count > 0) { + int i; + for (i=0;i<count;i++) { + e[i].endpoint = d->endpoint; + } (*eps) = talloc_realloc_p(mem_ctx, *eps, struct dcesrv_ep_iface, total + count); @@ -387,7 +391,7 @@ static const struct dcesrv_endpoint_ops rpc_epmapper_ops = { */ void rpc_epmapper_init(struct dcesrv_context *dce) { - if (!dcesrv_endpoint_register(dce, &rpc_epmapper_ops)) { + if (!dcesrv_endpoint_register(dce, &rpc_epmapper_ops, &dcerpc_table_epmapper)) { DEBUG(1,("Failed to register epmapper endpoint\n")); } } |