summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index 580d000d12..15d947cf0f 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -253,7 +253,6 @@ WERROR _svcctl_open_service(pipes_struct *p, SVCCTL_Q_OPEN_SERVICE *q_u, SVCCTL_
uint32 access_granted = 0;
NTSTATUS status;
pstring service;
- SERVICE_INFO *scm_info;
rpcstr_pull(service, q_u->servicename.buffer, sizeof(service), q_u->servicename.uni_str_len*2, 0);
@@ -262,7 +261,7 @@ WERROR _svcctl_open_service(pipes_struct *p, SVCCTL_Q_OPEN_SERVICE *q_u, SVCCTL_
/* based on my tests you can open a service if you have a valid scm handle */
- if ( !(scm_info = find_service_info_by_hnd( p, &q_u->handle )) )
+ if ( !find_service_info_by_hnd( p, &q_u->handle ) )
return WERR_BADFID;
/* perform access checks */