diff options
author | Günther Deschner <gd@samba.org> | 2008-03-27 22:55:20 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-03-27 23:31:54 +0100 |
commit | 4c17fce8dc615d9b9dc50cebe63d5b5054936a3c (patch) | |
tree | 3b2131a34e2766892211b9468a524869551bd6fb /source3/rpc_server | |
parent | f3d4cb5efa72c8665ed95dad605c7235d9ff568f (diff) | |
download | samba-4c17fce8dc615d9b9dc50cebe63d5b5054936a3c.tar.gz samba-4c17fce8dc615d9b9dc50cebe63d5b5054936a3c.tar.bz2 samba-4c17fce8dc615d9b9dc50cebe63d5b5054936a3c.zip |
Make sure to zero the returned handle in _svcctl_CloseServiceHandle().
Guenther
(This used to be commit 84a079af490cb135dd557091932ea079e1d7ff5b)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_svcctl_nt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index c117d46fde..6bb538a311 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/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; } |