Author: jelmer Date: 2007-08-26 20:05:13 +0000 (Sun, 26 Aug 2007) New Revision: 24676
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24676 Log: Fix pointers being used rather than the data they point at - caught by the IRIX compiler. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/torture/rpc/svcctl.c Changeset: Property changes on: branches/SAMBA_4_0 ___________________________________________________________________ Name: bzr:revision-info ...skipped... Name: bzr:revision-id:v3-trunk0 ...skipped... Modified: branches/SAMBA_4_0/source/torture/rpc/svcctl.c =================================================================== --- branches/SAMBA_4_0/source/torture/rpc/svcctl.c 2007-08-26 20:00:56 UTC (rev 24675) +++ branches/SAMBA_4_0/source/torture/rpc/svcctl.c 2007-08-26 20:05:13 UTC (rev 24676) @@ -49,8 +49,8 @@ } 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 @@ 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); }