]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc/ndr: align the definition of LIBNDR_STRING_FLAGS with currently defined flags
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Jun 2017 13:22:42 +0000 (15:22 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 13 Jul 2017 08:51:17 +0000 (10:51 +0200)
The range included the unused (1<<14) before.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 91d8272e8604b5d87bcc0ce365b553bc760c8ed3)

librpc/ndr/libndr.h

index 0c3c55a9bf2ca7857599d04f3115f59927e7ff18..db13c059e85d3a217e577807a4cf745ea1fb926c 100644 (file)
@@ -124,7 +124,19 @@ struct ndr_print {
 #define LIBNDR_FLAG_STR_CHARLEN                (1<<11)
 #define LIBNDR_FLAG_STR_UTF8           (1<<12)
 #define LIBNDR_FLAG_STR_RAW8           (1<<13)
-#define LIBNDR_STRING_FLAGS            (0x7FFC)
+#define LIBNDR_STRING_FLAGS            (0 | \
+               LIBNDR_FLAG_STR_ASCII | \
+               LIBNDR_FLAG_STR_LEN4 | \
+               LIBNDR_FLAG_STR_SIZE4 | \
+               LIBNDR_FLAG_STR_NOTERM | \
+               LIBNDR_FLAG_STR_NULLTERM | \
+               LIBNDR_FLAG_STR_SIZE2 | \
+               LIBNDR_FLAG_STR_BYTESIZE | \
+               LIBNDR_FLAG_STR_CONFORMANT | \
+               LIBNDR_FLAG_STR_CHARLEN | \
+               LIBNDR_FLAG_STR_UTF8 | \
+               LIBNDR_FLAG_STR_RAW8 | \
+               0)
 
 /* Disable string token compression  */
 #define LIBNDR_FLAG_NO_COMPRESSION     (1<<15)