librpc/ndr_drsblobs: use ndr_push_relative_ptr2_start()/_end()
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Feb 2010 18:59:19 +0000 (19:59 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 19 Feb 2010 11:30:23 +0000 (12:30 +0100)
metze
(cherry picked from commit b423bd2115e006f9af5d40cf5b651e03739d53a0)

librpc/ndr/ndr_drsblobs.c

index aecb0c3b16bb2b5fba19e257e83de175be031590..0f7bd75c6069c9f792a936edbd332c531837dc3f 100644 (file)
@@ -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;