diff options
author | Günther Deschner <gd@samba.org> | 2009-01-13 11:04:45 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-01-14 10:18:14 +0100 |
commit | df8b7248191737dcc1ec5ce2d892fba76438817b (patch) | |
tree | 4b54d119e1d63f1028f62eafd6ce48c28ac18abb /source3 | |
parent | af9f7a39f0e641df6a0c84e90261fe626e585ed8 (diff) | |
download | samba-df8b7248191737dcc1ec5ce2d892fba76438817b.tar.gz samba-df8b7248191737dcc1ec5ce2d892fba76438817b.tar.bz2 samba-df8b7248191737dcc1ec5ce2d892fba76438817b.zip |
s3-eventlog: use main talloc context in eventlog read call.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_eventlog_nt.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 ) { |