From 740c5ce08138bca3c44dc3cccdd75abdb83752d5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 16 Jan 2009 02:59:05 +0100 Subject: s3-eventlog: fix _eventlog_CloseEventLog. Guenther --- source3/rpc_server/srv_eventlog_nt.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_eventlog_nt.c b/source3/rpc_server/srv_eventlog_nt.c index ec35e4bc9b..0bf0730d39 100644 --- a/source3/rpc_server/srv_eventlog_nt.c +++ b/source3/rpc_server/srv_eventlog_nt.c @@ -695,7 +695,16 @@ NTSTATUS _eventlog_ClearEventLogW(pipes_struct *p, NTSTATUS _eventlog_CloseEventLog(pipes_struct * p, struct eventlog_CloseEventLog *r) { - return elog_close( p, r->in.handle ); + NTSTATUS status; + + status = elog_close( p, r->in.handle ); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + + ZERO_STRUCTP(r->out.handle); + + return NT_STATUS_OK; } /******************************************************************** -- cgit