From: Günther Deschner Date: Thu, 27 Mar 2008 21:55:20 +0000 (+0100) Subject: Make sure to zero the returned handle in _svcctl_CloseServiceHandle(). X-Git-Tag: samba-3.3.0pre1~3048^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84a079af490cb135dd557091932ea079e1d7ff5b;p=thirdparty%2Fsamba.git Make sure to zero the returned handle in _svcctl_CloseServiceHandle(). Guenther --- 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; }