summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-09 15:39:45 +0200
committerGünther Deschner <gd@samba.org>2009-04-09 16:42:28 +0200
commit76da89daaadc358c836817cf597a1ff1489a9029 (patch)
treeb2e81e70337420b349d564f6aa3537b1f3d17416 /source3/rpc_server
parent693c2e95294909292cd28982983681ea24912d28 (diff)
downloadsamba-76da89daaadc358c836817cf597a1ff1489a9029.tar.gz
samba-76da89daaadc358c836817cf597a1ff1489a9029.tar.bz2
samba-76da89daaadc358c836817cf597a1ff1489a9029.zip
s3-svcctl: minor fix for _svcctl_EnumDependentServicesW().
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index 350a5ca236..0b0ef83bee 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -546,6 +546,15 @@ WERROR _svcctl_EnumDependentServicesW(pipes_struct *p,
if ( !(info->access_granted & SC_RIGHT_SVC_ENUMERATE_DEPENDENTS) )
return WERR_ACCESS_DENIED;
+ switch (r->in.state) {
+ case SERVICE_STATE_ACTIVE:
+ case SERVICE_STATE_INACTIVE:
+ case SERVICE_STATE_ALL:
+ break;
+ default:
+ return WERR_INVALID_PARAM;
+ }
+
/* we have to set the outgoing buffer size to the same as the
incoming buffer size (even in the case of failure */
/* this is done in the autogenerated server already - gd */