diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-26 20:05:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:38 -0500 |
commit | 2d7e170a90828aebb366303dae2f1c9bfa8b1965 (patch) | |
tree | 5f6b35a4c5e9fc746c7bff030512ae0ff9345139 /source4/torture | |
parent | 79eb8538741b601b8f65d3bf44263b9415413639 (diff) | |
download | samba-2d7e170a90828aebb366303dae2f1c9bfa8b1965.tar.gz samba-2d7e170a90828aebb366303dae2f1c9bfa8b1965.tar.bz2 samba-2d7e170a90828aebb366303dae2f1c9bfa8b1965.zip |
r24676: Fix pointers being used rather than the data they point at - caught by the IRIX compiler.
(This used to be commit 678b125532621e2b2823e92695326469f0e557ed)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/svcctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/svcctl.c b/source4/torture/rpc/svcctl.c index c8fe877b7e..fedc999931 100644 --- a/source4/torture/rpc/svcctl.c +++ b/source4/torture/rpc/svcctl.c @@ -49,8 +49,8 @@ static BOOL test_EnumServicesStatus(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, } if (W_ERROR_EQUAL(r.out.result, WERR_MORE_DATA)) { - r.in.buf_size = r.out.bytes_needed; - r.out.service = talloc_size(mem_ctx, r.out.bytes_needed); + r.in.buf_size = *r.out.bytes_needed; + r.out.service = talloc_size(mem_ctx, *r.out.bytes_needed); status = dcerpc_svcctl_EnumServicesStatusW(p, mem_ctx, &r); @@ -66,7 +66,7 @@ static BOOL test_EnumServicesStatus(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, service = (struct ENUM_SERVICE_STATUS *)r.out.service; } - for(i = 0; i < r.out.services_returned; i++) { + for(i = 0; i < *r.out.services_returned; i++) { printf("Type: %d, State: %d\n", service[i].status.type, service[i].status.state); } |