diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-17 19:59:19 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-02-19 14:32:30 +0100 |
commit | 19cf1033f04496cc9db839a2a005105b5317b093 (patch) | |
tree | f74c32cc0e1932b7983143a82502f700bf638ae6 | |
parent | 9dba8fccac202fa780ad4552b3e478155836546e (diff) | |
download | samba-19cf1033f04496cc9db839a2a005105b5317b093.tar.gz |
librpc/ndr_drsblobs: use ndr_push_relative_ptr2_start()/_end()
metze
(cherry picked from commit b423bd2115e006f9af5d40cf5b651e03739d53a0)
(cherry picked from commit e57719ee8395fb288ad7d544c4a2b8fbf15bc72c)
-rw-r--r-- | librpc/ndr/ndr_drsblobs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_drsblobs.c b/librpc/ndr/ndr_drsblobs.c index aecb0c3b16b..0f7bd75c606 100644 --- a/librpc/ndr/ndr_drsblobs.c +++ b/librpc/ndr/ndr_drsblobs.c @@ -96,12 +96,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; |