summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc_connect.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-05-07 18:11:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:42 -0500
commit5f36534629f7f755c7ad8681ec2322baa50f5504 (patch)
tree22e736635c7fb34d3a69f116affdc8425fb121d8 /source4/librpc/rpc/dcerpc_connect.c
parentceb1d661727a14fef54ce210d0d97f4417f1b132 (diff)
downloadsamba-5f36534629f7f755c7ad8681ec2322baa50f5504.tar.gz
samba-5f36534629f7f755c7ad8681ec2322baa50f5504.tar.bz2
samba-5f36534629f7f755c7ad8681ec2322baa50f5504.zip
r15500: Add support for interactive prompting on bad passwords to the RPC libraries.
This support requires that the bind_ack and alter_ack recv functions also be send the DCE/RPC fault. This would be best done by having the ack run as a normal RPC reply callback, but this isn't easily possible for now. Andrew Bartlett (This used to be commit be6dde22fe728d64d47875699d3421c6d8d872a4)
Diffstat (limited to 'source4/librpc/rpc/dcerpc_connect.c')
-rw-r--r--source4/librpc/rpc/dcerpc_connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_connect.c b/source4/librpc/rpc/dcerpc_connect.c
index d69db51eb4..66b0af178b 100644
--- a/source4/librpc/rpc/dcerpc_connect.c
+++ b/source4/librpc/rpc/dcerpc_connect.c
@@ -764,7 +764,7 @@ static void continue_pipe_auth(struct composite_context *ctx)
struct composite_context);
struct pipe_connect_state *s = talloc_get_type(c->private_data, struct pipe_connect_state);
- c->status = dcerpc_pipe_auth_recv(ctx, s, &s->pipe);
+ c->status = dcerpc_pipe_auth_recv(s, &s->pipe);
if (!composite_is_ok(c)) return;
composite_done(c);
@@ -1170,7 +1170,8 @@ NTSTATUS dcerpc_secondary_connection_recv(struct composite_context *c,
s = talloc_get_type(c->private_data, struct sec_conn_state);
if (NT_STATUS_IS_OK(status)) {
- *p2 = talloc_steal(s->pipe, s->pipe2);
+ talloc_steal(s->pipe, s->pipe2);
+ *p2 = s->pipe2;
}
talloc_free(c);