summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@suse.de>2019-02-18 19:38:08 +0100
committerStefan Metzmacher <metze@samba.org>2019-07-22 16:49:15 +0000
commit85201cc76b4990b287681bd248c3c1b91a9f97be (patch)
tree3fb10387a688cc81bff9c2ab5df54770c3af0497 /source3/printing
parent82759189d16449d7e4cb23a353d99e2254437898 (diff)
downloadsamba-85201cc76b4990b287681bd248c3c1b91a9f97be.tar.gz
s3:rpc_server: Remove named_pipe_client struct and use dcerpc_ncacn_conn
Now NCACN_NP connections run the same loop as NCACN_IP_TCP and NCALRPC connections. Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/spoolssd.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c
index 69639577a5c..eef10860d84 100644
--- a/source3/printing/spoolssd.c
+++ b/source3/printing/spoolssd.c
@@ -445,9 +445,16 @@ static void spoolss_handle_client(struct tevent_req *req)
DEBUG(2, ("Spoolss preforked child %d got client connection!\n",
(int)(data->pf->pid)));
- named_pipe_accept_function(data->ev_ctx, data->msg_ctx,
- SPOOLSS_PIPE_NAME, sd,
- spoolss_client_terminated, data);
+ dcerpc_ncacn_accept(data->ev_ctx,
+ data->msg_ctx,
+ NCACN_NP,
+ SPOOLSS_PIPE_NAME,
+ NULL, /* remote client address */
+ NULL, /* local server address */
+ sd,
+ NULL, /* disconnect function */
+ spoolss_client_terminated,
+ data);
}
/* ==== Main Process Functions ==== */