summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-16 02:59:05 +0100
committerGünther Deschner <gd@samba.org>2009-01-16 11:52:49 +0100
commit740c5ce08138bca3c44dc3cccdd75abdb83752d5 (patch)
treedb4388e14eb91734d1c092b453fca72426b42833 /source3
parentc19926022cd39d2a29b1c365563427bdbab08412 (diff)
downloadsamba-740c5ce08138bca3c44dc3cccdd75abdb83752d5.tar.gz
samba-740c5ce08138bca3c44dc3cccdd75abdb83752d5.tar.bz2
samba-740c5ce08138bca3c44dc3cccdd75abdb83752d5.zip
s3-eventlog: fix _eventlog_CloseEventLog.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_eventlog_nt.c11
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;
}
/********************************************************************