summaryrefslogtreecommitdiff
path: root/pidl/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-05 17:34:19 +0200
committerGünther Deschner <gd@samba.org>2010-07-05 18:06:30 +0200
commit1dcf0e917e99cadf7267566db2139c3dbfc0815a (patch)
treeb8caf5749d38a505615c25ef2b35fbee0d809433 /pidl/lib
parentd56cc23c6a31f10151420086bbead715fa911f6e (diff)
downloadsamba-1dcf0e917e99cadf7267566db2139c3dbfc0815a.tar.gz
samba-1dcf0e917e99cadf7267566db2139c3dbfc0815a.tar.bz2
samba-1dcf0e917e99cadf7267566db2139c3dbfc0815a.zip
pidl: s3 server stubs: make sure LIBNDR_FLAG_BIGENDIAN is set when negotiated.
Guenther
Diffstat (limited to 'pidl/lib')
-rw-r--r--pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 0fdc89b9d7..311eb5b619 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -167,6 +167,9 @@ sub ParseFunction($$)
pidl "}";
pidl "";
pidl "pull->flags |= LIBNDR_FLAG_REF_ALLOC;";
+ pidl "if (p->endian) {";
+ pidl "\tpull->flags |= LIBNDR_FLAG_BIGENDIAN;";
+ pidl "}";
pidl "ndr_err = call->ndr_pull(pull, NDR_IN, r);";
pidl "if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {";
pidl "\ttalloc_free(r);";