s3-epmapper: Fixed endpoint registration.
authorAndreas Schneider <asn@samba.org>
Wed, 18 May 2011 10:10:42 +0000 (12:10 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 20 May 2011 19:18:14 +0000 (21:18 +0200)
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri May 20 12:03:18 CEST 2011 on sn-devel-104
(cherry picked from commit 7ab9e26b601e4e51736ce6eace46e6588fa1148f)

Fix bug #8155 (Registering only named pipes on EPM for a service doesn't work).

source3/rpc_server/rpc_ep_setup.c

index d00b35161c61a54992252a96c29389c8aecd9c5c..2d4c7e9cf7993b0d3bff61704fe7cc70f083657c 100644 (file)
@@ -133,7 +133,7 @@ static NTSTATUS rpc_ep_setup_try_register(TALLOC_CTX *mem_ctx,
                                          struct tevent_context *ev_ctx,
                                          struct messaging_context *msg_ctx,
                                          const struct ndr_interface_table *iface,
-                                         const char *name,
+                                         const char *ncalrpc,
                                          uint16_t port,
                                          struct dcerpc_binding_handle **pbh);
 
@@ -256,7 +256,7 @@ static NTSTATUS rpc_ep_setup_try_register(TALLOC_CTX *mem_ctx,
                                          struct tevent_context *ev_ctx,
                                          struct messaging_context *msg_ctx,
                                          const struct ndr_interface_table *iface,
-                                         const char *name,
+                                         const char *ncalrpc,
                                          uint16_t port,
                                          struct dcerpc_binding_handle **pbh)
 {
@@ -266,7 +266,7 @@ static NTSTATUS rpc_ep_setup_try_register(TALLOC_CTX *mem_ctx,
        status = dcerpc_binding_vector_create(mem_ctx,
                                              iface,
                                              port,
-                                             name,
+                                             ncalrpc,
                                              &v);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
@@ -276,7 +276,7 @@ static NTSTATUS rpc_ep_setup_try_register(TALLOC_CTX *mem_ctx,
                                    iface,
                                    v,
                                    &iface->syntax_id.uuid,
-                                   name,
+                                   iface->name,
                                    pbh);
        talloc_free(v);
        if (!NT_STATUS_IS_OK(status)) {