diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_eventlog_nt.c | 11 |
1 files changed, 10 insertions, 1 deletions
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; } /******************************************************************** |