From 1dcf0e917e99cadf7267566db2139c3dbfc0815a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 5 Jul 2010 17:34:19 +0200 Subject: pidl: s3 server stubs: make sure LIBNDR_FLAG_BIGENDIAN is set when negotiated. Guenther --- pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 3 +++ 1 file changed, 3 insertions(+) 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);"; -- cgit