summaryrefslogtreecommitdiff
path: root/librpc/ndr
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-17 19:59:19 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-18 13:44:00 +0100
commitb423bd2115e006f9af5d40cf5b651e03739d53a0 (patch)
treec97aca2cdae69670be0070adee882d28c9ee8fcf /librpc/ndr
parentbfd6edb3e9339d602eb6514ff50c3bb6c671174e (diff)
downloadsamba-b423bd2115e006f9af5d40cf5b651e03739d53a0.tar.gz
samba-b423bd2115e006f9af5d40cf5b651e03739d53a0.tar.bz2
samba-b423bd2115e006f9af5d40cf5b651e03739d53a0.zip
librpc/ndr_drsblobs: use ndr_push_relative_ptr2_start()/_end()
metze
Diffstat (limited to 'librpc/ndr')
-rw-r--r--librpc/ndr/ndr_drsblobs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_drsblobs.c b/librpc/ndr/ndr_drsblobs.c
index 741bf71191..9b55c5d5e1 100644
--- a/librpc/ndr/ndr_drsblobs.c
+++ b/librpc/ndr/ndr_drsblobs.c
@@ -97,12 +97,14 @@ _PUBLIC_ enum ndr_err_code ndr_push_trustAuthInOutBlob(struct ndr_push *ndr, int
}
if (ndr_flags & NDR_BUFFERS) {
if (r->current) {
- NDR_CHECK(ndr_push_relative_ptr2(ndr, r->current));
+ NDR_CHECK(ndr_push_relative_ptr2_start(ndr, r->current));
NDR_CHECK(ndr_push_AuthenticationInformationArray_with_count(ndr, NDR_SCALARS|NDR_BUFFERS, r->count, r->current));
+ NDR_CHECK(ndr_push_relative_ptr2_end(ndr, r->current));
}
if (r->previous) {
- NDR_CHECK(ndr_push_relative_ptr2(ndr, r->previous));
+ NDR_CHECK(ndr_push_relative_ptr2_start(ndr, r->previous));
NDR_CHECK(ndr_push_AuthenticationInformationArray_with_count(ndr, NDR_SCALARS|NDR_BUFFERS, r->count, r->previous));
+ NDR_CHECK(ndr_push_relative_ptr2_end(ndr, r->previous));
}
}
return NDR_ERR_SUCCESS;