diff options
author | Günther Deschner <gd@samba.org> | 2009-04-09 15:39:45 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-09 16:42:28 +0200 |
commit | 76da89daaadc358c836817cf597a1ff1489a9029 (patch) | |
tree | b2e81e70337420b349d564f6aa3537b1f3d17416 | |
parent | 693c2e95294909292cd28982983681ea24912d28 (diff) | |
download | samba-76da89daaadc358c836817cf597a1ff1489a9029.tar.gz samba-76da89daaadc358c836817cf597a1ff1489a9029.tar.bz2 samba-76da89daaadc358c836817cf597a1ff1489a9029.zip |
s3-svcctl: minor fix for _svcctl_EnumDependentServicesW().
Guenther
-rw-r--r-- | source3/rpc_server/srv_svcctl_nt.c | 9 |
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 */ |