Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
return NDR_ERR_SUCCESS;
}
+ if (NDR_BE(ndr)) {
+ /*
+ * It isn’t clear how this type should be encoded in a
+ * big‐endian context.
+ */
+ return ndr_pull_error(
+ ndr,
+ NDR_ERR_STRING,
+ "u16string does not support big‐endian encoding\n");
+ }
+
if (ndr->flags & LIBNDR_ENCODING_FLAGS) {
return ndr_pull_error(
ndr,
return NDR_ERR_SUCCESS;
}
+ if (NDR_BE(ndr)) {
+ /*
+ * It isn’t clear how this type should be encoded in a
+ * big‐endian context.
+ */
+ return ndr_push_error(
+ ndr,
+ NDR_ERR_STRING,
+ "u16string does not support big‐endian encoding\n");
+ }
+
if (s == NULL) {
return ndr_push_error(
ndr,