diff options
author | Günther Deschner <gd@samba.org> | 2013-02-01 17:41:00 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-02-01 21:19:28 +0100 |
commit | 499008021051e5b01e4c1c151403b18a9dcbcf24 (patch) | |
tree | 3eec5f6833750a1dc28b5c271315336e0d4645da | |
parent | 87157f04d1ffcee9f12a9529869a3338af82d99a (diff) | |
download | samba-499008021051e5b01e4c1c151403b18a9dcbcf24.tar.gz samba-499008021051e5b01e4c1c151403b18a9dcbcf24.tar.bz2 samba-499008021051e5b01e4c1c151403b18a9dcbcf24.zip |
krb5pac: make sure to correctly store the highest relative pointer offset.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Feb 1 21:19:28 CET 2013 on sn-devel-104
-rw-r--r-- | librpc/ndr/ndr_krb5pac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_krb5pac.c b/librpc/ndr/ndr_krb5pac.c index 237c0b65d4..f7db791107 100644 --- a/librpc/ndr/ndr_krb5pac.c +++ b/librpc/ndr/ndr_krb5pac.c @@ -115,6 +115,9 @@ 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); + if (ndr->offset > ndr->relative_highest_offset) { + ndr->relative_highest_offset = ndr->offset; + } ndr->offset = _relative_save_offset; } ndr->flags = _flags_save_PAC_INFO; |