diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-02-17 20:00:04 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-02-18 13:44:01 +0100 |
commit | e03591111a1b9c2f05c29a7afac4641f23f455f4 (patch) | |
tree | b2f07fc40b5afa0c9c56158b79325f1f2ed58f65 | |
parent | b423bd2115e006f9af5d40cf5b651e03739d53a0 (diff) | |
download | samba-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.c | 3 |
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; } |