s->pipe->binding = talloc_move(s->pipe, &s->binding);
authorStefan Metzmacher <metze@samba.org>
Sat, 18 Oct 2014 08:26:53 +0000 (10:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:43:20 +0000 (12:43 +0200)
source4/librpc/rpc/dcerpc_connect.c
source4/librpc/rpc/dcerpc_secondary.c

index af6022c78c241b7adbea73b0eb232292aa4f96a4..cff29bc06b2a9b70db446af3b3a8f823f153fd55 100644 (file)
@@ -1170,10 +1170,7 @@ 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);
-       if (composite_nomem(s->pipe->binding, c)) {
-               return;
-       }
+       s->pipe->binding = talloc_move(s->pipe, &s->binding);
 
        auth_bind_req = dcerpc_pipe_auth_send(s->pipe, s->pipe->binding, s->table,
                                              s->credentials, s->lp_ctx);
index 8125bd3c8e9c49cbb450db9816f079049411fe23..084413ac84c5fb281e2480dcb359de10ef345001 100644 (file)
@@ -305,10 +305,7 @@ static void continue_pipe_open(struct composite_context *c)
        s = talloc_get_type(c->private_data, struct sec_conn_state);
 
        s->pipe2->conn->flags = s->pipe->conn->flags;
-       s->pipe2->binding     = dcerpc_binding_dup(s->pipe2, s->binding);
-       if (composite_nomem(s->pipe2->binding, c)) {
-               return;
-       }
+       s->pipe2->binding = talloc_move(s->pipe2, &s->binding);
 
        composite_done(c);
 }