summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-20 11:08:13 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:48 +0100
commitf102173f2e0eced12ec4b9472c6136a234df6f1a (patch)
treef1abf79ea5939dc536c73751bca27e2d417fb268 /source4/librpc/ndr
parent7dcaee5503d0b2d6f074ceb9f26b95548ea3aeef (diff)
downloadsamba-f102173f2e0eced12ec4b9472c6136a234df6f1a.tar.gz
samba-f102173f2e0eced12ec4b9472c6136a234df6f1a.tar.bz2
samba-f102173f2e0eced12ec4b9472c6136a234df6f1a.zip
r26052: ndr_krb5pac: don't use ndr_pull_save anymore
metze (This used to be commit dee44c03208699f6dd3b05a9ba914d6f55eb6278)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_krb5pac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/ndr/ndr_krb5pac.c b/source4/librpc/ndr/ndr_krb5pac.c
index ec8bae3eb1..1b32df4c62 100644
--- a/source4/librpc/ndr/ndr_krb5pac.c
+++ b/source4/librpc/ndr/ndr_krb5pac.c
@@ -101,8 +101,8 @@ enum ndr_err_code ndr_pull_PAC_BUFFER(struct ndr_pull *ndr, int ndr_flags, struc
uint32_t _flags_save_PAC_INFO = ndr->flags;
ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN8);
if (r->info) {
- struct ndr_pull_save _relative_save;
- ndr_pull_save(ndr, &_relative_save);
+ uint32_t _relative_save_offset;
+ _relative_save_offset = ndr->offset;
NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->info));
_mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->info, 0);
@@ -114,7 +114,7 @@ enum ndr_err_code ndr_pull_PAC_BUFFER(struct ndr_pull *ndr, int ndr_flags, struc
NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_info, 0, r->_ndr_size));
}
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
- ndr_pull_restore(ndr, &_relative_save);
+ ndr->offset = _relative_save_offset;
}
ndr->flags = _flags_save_PAC_INFO;
}