summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-17 20:00:04 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-18 13:44:01 +0100
commite03591111a1b9c2f05c29a7afac4641f23f455f4 (patch)
treeb2f07fc40b5afa0c9c56158b79325f1f2ed58f65
parentb423bd2115e006f9af5d40cf5b651e03739d53a0 (diff)
downloadsamba-e03591111a1b9c2f05c29a7afac4641f23f455f4.tar.gz
samba-e03591111a1b9c2f05c29a7afac4641f23f455f4.tar.bz2
samba-e03591111a1b9c2f05c29a7afac4641f23f455f4.zip
librpc/ndr_krb5pac: use ndr_push_relative_ptr2_start()/_end()
metze
-rw-r--r--librpc/ndr/ndr_krb5pac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_krb5pac.c b/librpc/ndr/ndr_krb5pac.c
index f6654f7380..34a2ef88a7 100644
--- a/librpc/ndr/ndr_krb5pac.c
+++ b/librpc/ndr/ndr_krb5pac.c
@@ -59,7 +59,7 @@ enum ndr_err_code ndr_push_PAC_BUFFER(struct ndr_push *ndr, int ndr_flags, const
uint32_t _flags_save_PAC_INFO = ndr->flags;
ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN8);
if (r->info) {
- NDR_CHECK(ndr_push_relative_ptr2(ndr, r->info));
+ NDR_CHECK(ndr_push_relative_ptr2_start(ndr, r->info));
{
struct ndr_push *_ndr_info;
NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_info, 0, _subcontext_size_PAC_INFO(r->info,r->type,ndr->iconv_convenience, 0)));
@@ -67,6 +67,7 @@ enum ndr_err_code ndr_push_PAC_BUFFER(struct ndr_push *ndr, int ndr_flags, const
NDR_CHECK(ndr_push_PAC_INFO(_ndr_info, NDR_SCALARS|NDR_BUFFERS, r->info));
NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_info, 0, _subcontext_size_PAC_INFO(r->info,r->type,ndr->iconv_convenience,0)));
}
+ NDR_CHECK(ndr_push_relative_ptr2_end(ndr, r->info));
}
ndr->flags = _flags_save_PAC_INFO;
}