From df8b7248191737dcc1ec5ce2d892fba76438817b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 13 Jan 2009 11:04:45 +0100 Subject: s3-eventlog: use main talloc context in eventlog read call. Guenther --- source3/rpc_server/srv_eventlog_nt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_eventlog_nt.c b/source3/rpc_server/srv_eventlog_nt.c index 145b4600f9..8f5c0e8aa2 100644 --- a/source3/rpc_server/srv_eventlog_nt.c +++ b/source3/rpc_server/srv_eventlog_nt.c @@ -721,7 +721,6 @@ NTSTATUS _eventlog_read_eventlog( pipes_struct * p, EVENTLOG_INFO *info = find_eventlog_info_by_hnd( p, &q_u->handle ); Eventlog_entry *entry = NULL, *ee_new = NULL; uint32 num_records_read = 0; - prs_struct *ps; int bytes_left, record_number; uint32 elog_read_type, elog_read_dir; @@ -760,7 +759,7 @@ NTSTATUS _eventlog_read_eventlog( pipes_struct * p, /* assume that when the record fetch fails, that we are done */ - entry = get_eventlog_record (ps->mem_ctx, ELOG_TDB_CTX(info->etdb), record_number); + entry = get_eventlog_record (p->mem_ctx, ELOG_TDB_CTX(info->etdb), record_number); if (!entry) { break; } @@ -769,7 +768,7 @@ NTSTATUS _eventlog_read_eventlog( pipes_struct * p, /* Now see if there is enough room to add */ - if ( !(ee_new = read_package_entry( ps->mem_ctx, entry )) ) + if ( !(ee_new = read_package_entry( p->mem_ctx, entry )) ) return NT_STATUS_NO_MEMORY; if ( r_u->num_bytes_in_resp + ee_new->record.length > q_u->max_read_size ) { -- cgit