From 84a079af490cb135dd557091932ea079e1d7ff5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 27 Mar 2008 22:55:20 +0100 Subject: [PATCH] Make sure to zero the returned handle in _svcctl_CloseServiceHandle(). Guenther --- source/rpc_server/srv_svcctl_nt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/rpc_server/srv_svcctl_nt.c b/source/rpc_server/srv_svcctl_nt.c index c117d46fdef..6bb538a3115 100644 --- a/source/rpc_server/srv_svcctl_nt.c +++ b/source/rpc_server/srv_svcctl_nt.c @@ -328,6 +328,8 @@ WERROR _svcctl_CloseServiceHandle(pipes_struct *p, struct svcctl_CloseServiceHan if ( !close_policy_hnd( p, r->in.handle ) ) return WERR_BADFID; + ZERO_STRUCTP(r->out.handle); + return WERR_OK; } -- 2.11.4.GIT