HACK fix...
authorStefan Metzmacher <metze@samba.org>
Tue, 7 Oct 2014 09:06:42 +0000 (11:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:43:20 +0000 (12:43 +0200)
source4/librpc/rpc/dcerpc_connect.c

index c5d6a570f26e249af838e4f60aa03e27fb8f4e7a..d23883cf8eecfe9f785ba4f62915b04b2b26e479 100644 (file)
@@ -1170,12 +1170,12 @@ static void continue_pipe_connect(struct composite_context *c, struct pipe_conne
 {
        struct composite_context *auth_bind_req;
 
-       s->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);
+       s->pipe->binding = talloc_move(s->pipe, &s->binding);
        if (composite_nomem(s->pipe->binding, c)) {
                return;
        }
 
-       auth_bind_req = dcerpc_pipe_auth_send(s->pipe, s->binding, s->table,
+       auth_bind_req = dcerpc_pipe_auth_send(s->pipe, s->pipe->binding, s->table,
                                              s->credentials, s->lp_ctx);
        composite_continue(c, auth_bind_req, continue_pipe_auth, c);
 }