r11810: Fix talloc hierarchy
authorVolker Lendecke <vlendec@samba.org>
Sun, 20 Nov 2005 17:02:28 +0000 (17:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:31 +0000 (13:46 -0500)
(This used to be commit e1bf1c326f297321a6c8fdf9679130dba102669e)

source4/librpc/rpc/dcerpc.c

index ee06d6e2bef336a7cbcbcdd2b96db6b895b8b914..b783e90204de9870123a1cb15c64e9a568e75e5c 100644 (file)
@@ -582,7 +582,7 @@ static void bind_request_recv(struct dcerpc_connection *conn, DATA_BLOB *blob,
        if (conn->security_state.auth_info &&
            state->pkt.u.bind_ack.auth_info.length) {
                c->status = ndr_pull_struct_blob(
-                       &state->pkt.u.bind_ack.auth_info, state,
+                       &state->pkt.u.bind_ack.auth_info, conn,
                        conn->security_state.auth_info,
                        (ndr_pull_flags_fn_t)ndr_pull_dcerpc_auth);
                if (!composite_is_ok(c)) return;
@@ -659,7 +659,7 @@ struct composite_context *dcerpc_bind_send(struct dcerpc_pipe *p,
        state->pkt.u.bind.auth_info = data_blob(NULL, 0);
 
        /* construct the NDR form of the packet */
-       c->status = ncacn_push_auth(&state->blob, mem_ctx, &state->pkt,
+       c->status = ncacn_push_auth(&state->blob, state, &state->pkt,
                                    p->conn->security_state.auth_info);
        if (!NT_STATUS_IS_OK(c->status)) {
                goto failed;