s3:rpc_server: Split dcerpc_ncacn_accept to deal with tstream_npa
authorSamuel Cabrero <scabrero@suse.de>
Mon, 18 Feb 2019 18:24:54 +0000 (19:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 22 Jul 2019 16:49:15 +0000 (16:49 +0000)
commit52c3bebd23e0343dfc1b34bbe2e894ca62974be1
tree876fc440db85c529030f60377d03f17bcbc18897
parent61fb17f85bf7c6a33253d9b34a044d614b733c2b
s3:rpc_server: Split dcerpc_ncacn_accept to deal with tstream_npa

In preparation to remove the named_pipe_client struct split the function
if two parts and build the tstream context as soon as possible, as it
will take care of closing the socket when the tstream_context is freed.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/rpc_server.c
source3/rpc_server/rpc_server.h