rpc_server: Favor talloc_move over talloc_steal
authorVolker Lendecke <vl@samba.org>
Wed, 20 Mar 2019 13:15:10 +0000 (14:15 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 22 Mar 2019 18:02:16 +0000 (18:02 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/rpc_ncacn_np.c

index 2b48336..c45e9cb 100644 (file)
@@ -186,7 +186,7 @@ NTSTATUS make_internal_rpc_pipe_socketpair(
        }
        tevent_req_set_callback(subreq, named_pipe_packet_process, npc);
 
-       *pnpa = talloc_steal(mem_ctx, npa);
+       *pnpa = talloc_move(mem_ctx, &npa);
        status = NT_STATUS_OK;
 out:
        talloc_free(tmp_ctx);