summaryrefslogtreecommitdiff
path: root/source/libnet
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-06-29 20:34:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:39 -0500
commitfa6b52dbf7321d1a7f0fdea32ab2605951c2b35a (patch)
tree888294ec23a858e18813d374c35cadfd990041d6 /source/libnet
parent436c8a721114815af8eb8c96ebdfe32c1875faaa (diff)
downloadsamba-fa6b52dbf7321d1a7f0fdea32ab2605951c2b35a.tar.gz
r16694: Store lsa rpc pipe pointer in a right place.
rafal
Diffstat (limited to 'source/libnet')
-rw-r--r--source/libnet/libnet_rpc.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/source/libnet/libnet_rpc.c b/source/libnet/libnet_rpc.c
index 3574559d4f7..fce78111382 100644
--- a/source/libnet/libnet_rpc.c
+++ b/source/libnet/libnet_rpc.c
@@ -147,8 +147,9 @@ static NTSTATUS libnet_RpcConnectSrv_recv(struct composite_context *c,
mem_ctx is freed */
if (r->in.dcerpc_iface == &dcerpc_table_samr) {
ctx->samr_pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
- } else {
- ctx->pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
+
+ } else if (r->in.dcerpc_iface == &dcerpc_table_lsarpc) {
+ ctx->lsa_pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
}
} else {
r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string);
@@ -321,9 +322,11 @@ static NTSTATUS libnet_RpcConnectDC_recv(struct composite_context *c,
mem_ctx is freed */
if (r->in.dcerpc_iface == &dcerpc_table_samr) {
ctx->samr_pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
- } else {
- ctx->pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
+
+ } else if (r->in.dcerpc_iface == &dcerpc_table_lsarpc) {
+ ctx->lsa_pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
}
+
} else {
r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string);
}
@@ -432,7 +435,7 @@ static void continue_dci_rpc_connect(struct composite_context *ctx)
}
/* prepare to open a policy handle on lsa pipe */
- s->lsa_pipe = s->ctx->pipe;
+ s->lsa_pipe = s->ctx->lsa_pipe;
s->qos.len = 0;
s->qos.impersonation_level = 2;
@@ -684,9 +687,11 @@ static NTSTATUS libnet_RpcConnectDCInfo_recv(struct composite_context *c, struct
mem_ctx is freed */
if (r->in.dcerpc_iface == &dcerpc_table_samr) {
ctx->samr_pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
- } else {
- ctx->pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
+
+ } else if (r->in.dcerpc_iface == &dcerpc_table_lsarpc) {
+ ctx->lsa_pipe = talloc_reference(ctx, r->out.dcerpc_pipe);
}
+
} else {
r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string);
}