mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
rpc_server: Pass dcerpc_binding to dcesrv_create_ncacn_ip_tcp_sockets()
It does not need a dcesrv_endpoint. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
cc456ac882
commit
e74d520855
@ -121,7 +121,7 @@ NTSTATUS dcesrv_create_endpoint_sockets(struct tevent_context *ev_ctx,
|
||||
TALLOC_FREE(fds);
|
||||
|
||||
status = dcesrv_create_ncacn_ip_tcp_sockets(
|
||||
e, talloc_tos(), &num_fds, &fds);
|
||||
e->ep_description, talloc_tos(), &num_fds, &fds);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -274,7 +274,7 @@ NTSTATUS dcesrv_setup_endpoint_sockets(struct tevent_context *ev_ctx,
|
||||
|
||||
case NCACN_IP_TCP:
|
||||
status = dcesrv_create_ncacn_ip_tcp_sockets(
|
||||
e, frame, &num_fds, &fds);
|
||||
e->ep_description, frame, &num_fds, &fds);
|
||||
break;
|
||||
|
||||
case NCACN_NP:
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define DBGC_CLASS DBGC_RPC_SRV
|
||||
|
||||
NTSTATUS dcesrv_create_ncacn_ip_tcp_sockets(
|
||||
struct dcesrv_endpoint *e,
|
||||
struct dcerpc_binding *b,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
size_t *pnum_fds,
|
||||
int **pfds)
|
||||
@ -47,8 +47,7 @@ NTSTATUS dcesrv_create_ncacn_ip_tcp_sockets(
|
||||
NTSTATUS status = NT_STATUS_INVALID_PARAMETER;
|
||||
bool ok;
|
||||
|
||||
endpoint = dcerpc_binding_get_string_option(
|
||||
e->ep_description, "endpoint");
|
||||
endpoint = dcerpc_binding_get_string_option(b, "endpoint");
|
||||
if (endpoint != NULL) {
|
||||
port = atoi(endpoint);
|
||||
}
|
||||
@ -129,8 +128,7 @@ NTSTATUS dcesrv_create_ncacn_ip_tcp_sockets(
|
||||
/* Set the port in the endpoint */
|
||||
snprintf(port_str, sizeof(port_str), "%u", port);
|
||||
|
||||
status = dcerpc_binding_set_string_option(
|
||||
e->ep_description, "endpoint", port_str);
|
||||
status = dcerpc_binding_set_string_option(b, "endpoint", port_str);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DBG_ERR("Failed to set binding endpoint '%s': %s\n",
|
||||
port_str, nt_errstr(status));
|
||||
|
@ -28,7 +28,7 @@
|
||||
struct pf_listen_fd;
|
||||
|
||||
NTSTATUS dcesrv_create_ncacn_ip_tcp_sockets(
|
||||
struct dcesrv_endpoint *e,
|
||||
struct dcerpc_binding *b,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
size_t *pnum_fds,
|
||||
int **pfds);
|
||||
|
Loading…
Reference in New Issue
Block a user