git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
693c2e9
)
s3-svcctl: minor fix for _svcctl_EnumDependentServicesW().
author
Günther Deschner
<gd@samba.org>
Thu, 9 Apr 2009 13:39:45 +0000
(15:39 +0200)
committer
Günther Deschner
<gd@samba.org>
Thu, 9 Apr 2009 14:42:28 +0000
(16:42 +0200)
Guenther
source3/rpc_server/srv_svcctl_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_svcctl_nt.c
b/source3/rpc_server/srv_svcctl_nt.c
index 350a5ca236575f4d7fb743aaa58ecc4c7e592148..0b0ef83bee97c73613477149a0d15a02c3a164ac 100644
(file)
--- 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 */