From 2908e5837c6f68dea56bbb96b359c5600102440b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 18 Feb 2005 17:24:21 +0000 Subject: r5446: fix pulling of arrays in EnumXXX functions metze (This used to be commit 0aea8522d7ddaf1ce4cc708c13888e44d14cda32) --- source4/librpc/ndr/ndr_spoolss_buf.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/librpc') diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c index 0e51533941..e481503ccf 100644 --- a/source4/librpc/ndr/ndr_spoolss_buf.c +++ b/source4/librpc/ndr/ndr_spoolss_buf.c @@ -56,6 +56,8 @@ NTSTATUS pull_spoolss_FormInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, } NDR_ALLOC_N(ndr, *info, count); for (i=0;idata += ndr->offset; + ndr->offset = 0; NDR_CHECK(ndr_pull_spoolss_FormInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, &(*info)[i])); } return NT_STATUS_OK; @@ -73,6 +75,8 @@ NTSTATUS pull_spoolss_JobInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, } NDR_ALLOC_N(ndr, *info, count); for (i=0;idata += ndr->offset; + ndr->offset = 0; NDR_CHECK(ndr_pull_spoolss_JobInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, &(*info)[i])); } return NT_STATUS_OK; @@ -90,6 +94,8 @@ NTSTATUS pull_spoolss_DriverInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, } NDR_ALLOC_N(ndr, *info, count); for (i=0;idata += ndr->offset; + ndr->offset = 0; NDR_CHECK(ndr_pull_spoolss_DriverInfo(ndr, NDR_SCALARS|NDR_BUFFERS, level, &(*info)[i])); } return NT_STATUS_OK; -- cgit