diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-14 09:07:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:53 -0500 |
commit | da5cbd0886a38e3e59791fd5ccd6e21f8fe9d3f2 (patch) | |
tree | 3dba7e22605ba07a32243a0ddf91aa721f1f250b /source4/librpc/ndr | |
parent | b1a001e43fb1a32330c65d235dfab69ba89cd0ce (diff) | |
download | samba-da5cbd0886a38e3e59791fd5ccd6e21f8fe9d3f2.tar.gz samba-da5cbd0886a38e3e59791fd5ccd6e21f8fe9d3f2.tar.bz2 samba-da5cbd0886a38e3e59791fd5ccd6e21f8fe9d3f2.zip |
r2968: fixed the byte order problem with the new RHS parsing on ncacn_ip_tcp
(This used to be commit cc00f9b6b87783d189df00de0ce9ae92b907e21a)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r-- | source4/librpc/ndr/ndr.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 959616fc78..4f6f135cd6 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -350,6 +350,17 @@ void ndr_print_function_debug(void (*fn)(struct ndr_print *, const char *, int , talloc_free(ndr); } +void ndr_set_flags(uint32_t *pflags, uint32_t new_flags) +{ + /* the big/little endian flags are inter-dependent */ + if (new_flags & LIBNDR_FLAG_LITTLE_ENDIAN) { + (*pflags) &= ~LIBNDR_FLAG_BIGENDIAN; + } + if (new_flags & LIBNDR_FLAG_BIGENDIAN) { + (*pflags) &= ~LIBNDR_FLAG_LITTLE_ENDIAN; + } + (*pflags) |= new_flags; +} static NTSTATUS ndr_map_error(enum ndr_err_code err) { |