summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_echo.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-17 06:27:45 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-17 06:27:45 +0000
commit59df3ce5b5c5b484793a0e16faeb581ef343e167 (patch)
treecceb5d9fc8df01ec7c399ef690e86a34fba34a6b /source4/librpc/ndr/ndr_echo.c
parentfa83432e1085d32f1a3f4208b81b6e936ba63b38 (diff)
downloadsamba-59df3ce5b5c5b484793a0e16faeb581ef343e167.tar.gz
samba-59df3ce5b5c5b484793a0e16faeb581ef343e167.tar.bz2
samba-59df3ce5b5c5b484793a0e16faeb581ef343e167.zip
security descriptors are no longer a "special" type, they are handled
using the [relative] property this also fixes level3 of PrinterInfo (a relative secdesc) (This used to be commit d5a15257fdd5f6cfe2706765a7c29f623ec1c6f8)
Diffstat (limited to 'source4/librpc/ndr/ndr_echo.c')
-rw-r--r--source4/librpc/ndr/ndr_echo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/ndr/ndr_echo.c b/source4/librpc/ndr/ndr_echo.c
index 74e55c7c19..0067518f89 100644
--- a/source4/librpc/ndr/ndr_echo.c
+++ b/source4/librpc/ndr/ndr_echo.c
@@ -14,7 +14,7 @@ NTSTATUS ndr_push_echo_EchoData(struct ndr_push *ndr, struct echo_EchoData *r)
NDR_CHECK(ndr_push_uint32(ndr, r->in.len));
if (r->in.in_data) {
NDR_CHECK(ndr_push_uint32(ndr, r->in.len));
- NDR_CHECK(ndr_push_array_uint8(ndr, r->in.in_data, r->in.len));
+ NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.in_data, r->in.len));
}
return NT_STATUS_OK;
@@ -25,7 +25,7 @@ NTSTATUS ndr_push_echo_SinkData(struct ndr_push *ndr, struct echo_SinkData *r)
NDR_CHECK(ndr_push_uint32(ndr, r->in.len));
if (r->in.data) {
NDR_CHECK(ndr_push_uint32(ndr, r->in.len));
- NDR_CHECK(ndr_push_array_uint8(ndr, r->in.data, r->in.len));
+ NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.data, r->in.len));
}
return NT_STATUS_OK;
@@ -62,7 +62,7 @@ NTSTATUS ndr_pull_echo_EchoData(struct ndr_pull *ndr, struct echo_EchoData *r)
}
}
NDR_ALLOC_N_SIZE(ndr, r->out.out_data, r->in.len, sizeof(r->out.out_data[0]));
- NDR_CHECK(ndr_pull_array_uint8(ndr, r->out.out_data, r->in.len));
+ NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.out_data, r->in.len));
}
return NT_STATUS_OK;
@@ -84,7 +84,7 @@ NTSTATUS ndr_pull_echo_SourceData(struct ndr_pull *ndr, struct echo_SourceData *
return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->in.len);
}
}
- NDR_CHECK(ndr_pull_array_uint8(ndr, r->out.data, r->in.len));
+ NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.data, r->in.len));
}
return NT_STATUS_OK;