summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-09-18 10:59:14 +0200
committerGünther Deschner <gd@samba.org>2013-09-20 13:07:30 +0200
commitb73e2d927b2221cb3fde8776789c8ca085cf2b8f (patch)
treec82074a3f7ef0b8b669d7d0b466d4c672adacef7 /source3/rpc_client
parent40ee3d8a5f7439b90f1ebf5e40535fad51038fe6 (diff)
downloadsamba-b73e2d927b2221cb3fde8776789c8ca085cf2b8f.tar.gz
samba-b73e2d927b2221cb3fde8776789c8ca085cf2b8f.tar.bz2
samba-b73e2d927b2221cb3fde8776789c8ca085cf2b8f.zip
s3-rpc: use dcerpc_default_transport_endpoint function.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/rpc_transport_np.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c
index 804db580b1..961749436c 100644
--- a/source3/rpc_client/rpc_transport_np.c
+++ b/source3/rpc_client/rpc_transport_np.c
@@ -21,6 +21,7 @@
#include "../lib/util/tevent_ntstatus.h"
#include "rpc_client/rpc_transport.h"
#include "libsmb/cli_np_tstream.h"
+#include "librpc/ndr/ndr_table.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_CLI
@@ -47,7 +48,7 @@ struct tevent_req *rpc_transport_np_init_send(TALLOC_CTX *mem_ctx,
return NULL;
}
- pipe_name = get_pipe_name_from_syntax(state, &table->syntax_id);
+ pipe_name = dcerpc_default_transport_endpoint(mem_ctx, NCACN_NP, table);
if (tevent_req_nomem(pipe_name, req)) {
return tevent_req_post(req, ev);
}