Make sure to zero the returned handle in _svcctl_CloseServiceHandle().
authorGünther Deschner <gd@samba.org>
Thu, 27 Mar 2008 21:55:20 +0000 (22:55 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 27 Mar 2008 22:31:54 +0000 (23:31 +0100)
Guenther
(This used to be commit 84a079af490cb135dd557091932ea079e1d7ff5b)

source3/rpc_server/srv_svcctl_nt.c

index c117d46fdef2e1f3c3cb465c59e05e0bbbeeff4e..6bb538a3115384a3c148287fbfcb5b69c238f6bd 100644 (file)
@@ -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;
 }