mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
libndr: Apply endianness flags to subndr
We're creating a fresh subcontext for a "[MS-RPCE] 2.2.6 Type Serialization Version 1". Probably nobody has tested a big endian subcontext yet. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 10 23:04:19 UTC 2024 on atb-devel-224
This commit is contained in:
parent
10df1b9600
commit
ae3bb10905
@ -837,9 +837,9 @@ _PUBLIC_ enum ndr_err_code ndr_pull_subcontext_start(struct ndr_pull *ndr,
|
||||
subndr->data_size = r_content_size;
|
||||
|
||||
if (force_le) {
|
||||
ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
|
||||
ndr_set_flags(&subndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
|
||||
} else if (force_be) {
|
||||
ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
|
||||
ndr_set_flags(&subndr->flags, LIBNDR_FLAG_BIGENDIAN);
|
||||
}
|
||||
|
||||
*_subndr = subndr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user