diff options
author | Samuel Cabrero <scabrero@suse.de> | 2019-02-27 19:13:57 +0100 |
---|---|---|
committer | Samuel Cabrero <scabrero@sn-devel-184> | 2020-03-20 15:36:34 +0000 |
commit | 9a6a5a50f14318b508bd029de4f13d157a237c0e (patch) | |
tree | 8014c4efa9f8c6c539d9ab28860fa7b79ea7e130 /source3/printing/spoolssd.c | |
parent | 64a70a96100d244ad0f266768ef5e5452a2771af (diff) | |
download | samba-9a6a5a50f14318b508bd029de4f13d157a237c0e.tar.gz |
s3:rpc_server: Create ncacn_np sockets through endpoint initialization
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/printing/spoolssd.c')
-rw-r--r-- | source3/printing/spoolssd.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 3e640c29269..cad2ad2317e 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -628,22 +628,6 @@ static NTSTATUS spoolssd_create_sockets(struct tevent_context *ev_ctx, } } - status = dcesrv_create_ncacn_np_socket(SPOOLSS_PIPE_NAME, &fd); - if (!NT_STATUS_IS_OK(status)) { - goto done; - } - - rc = listen(fd, pf_spoolss_cfg.max_allowed_clients); - if (rc == -1) { - DBG_ERR("Failed to listen on spoolss pipe - %s\n", - strerror(errno)); - goto done; - } - listen_fd[*listen_fd_size].fd = fd; - listen_fd[*listen_fd_size].fd_data = NULL; - (*listen_fd_size)++; - fd = -1; - if (epm_mode != RPC_SERVICE_MODE_DISABLED && (lp_parm_bool(-1, "rpc_server", "register_embedded_np", false))) { status = dcerpc_binding_vector_add_np_default(&ndr_table_spoolss, v); |