summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-22 10:30:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:36 -0500
commitef05328552f125bc393e44fe96f99a540520ddb1 (patch)
treec35ee0eb85ed8c7cf89a69addf24fb76b27faa6a /source3/rpcclient
parent1c16e0d642a17a247434eee0ca7c57d6383ff797 (diff)
downloadsamba-ef05328552f125bc393e44fe96f99a540520ddb1.tar.gz
samba-ef05328552f125bc393e44fe96f99a540520ddb1.tar.bz2
samba-ef05328552f125bc393e44fe96f99a540520ddb1.zip
r19451: Another cleanup of 18802. Referring to structures after the block has been
left is not a good idea. Volker (This used to be commit 88ac17db196c828e15a73c7561fda291b15e2613)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index e1e5af752a..9f6e606c3a 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -243,6 +243,9 @@ static NTSTATUS cmd_srvsvc_net_share_enum(struct rpc_pipe_client *cli,
int argc, const char **argv)
{
uint32 info_level = 2;
+ struct srvsvc_NetShareCtr1 ctr1;
+ struct srvsvc_NetShareCtr2 ctr2;
+ struct srvsvc_NetShareCtr502 ctr502;
union srvsvc_NetShareCtr ctr;
NTSTATUS result;
uint32 hnd;
@@ -263,20 +266,17 @@ static NTSTATUS cmd_srvsvc_net_share_enum(struct rpc_pipe_client *cli,
switch (info_level) {
case 1: {
- struct srvsvc_NetShareCtr1 ctr1;
ZERO_STRUCT(ctr1);
ctr.ctr1 = &ctr1;
}
break;
case 2: {
- struct srvsvc_NetShareCtr2 ctr2;
ZERO_STRUCT(ctr2);
ctr.ctr2 = &ctr2;
}
break;
case 502: {
- struct srvsvc_NetShareCtr502 ctr502;
ZERO_STRUCT(ctr502);
ctr.ctr502 = &ctr502;
}