summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/librpc/ndr/ndr_string.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/librpc/ndr/ndr_string.c b/source4/librpc/ndr/ndr_string.c
index 3f7eb9f630..fbccdb6bed 100644
--- a/source4/librpc/ndr/ndr_string.c
+++ b/source4/librpc/ndr/ndr_string.c
@@ -643,12 +643,6 @@ NTSTATUS ndr_pull_charset(struct ndr_pull *ndr, int ndr_flags, const char **var,
NDR_PULL_NEED_BYTES(ndr, length*byte_mul);
- if (ndr->flags & LIBNDR_FLAG_STR_NULLTERM) {
- /* Explicitly ignore the return value here. An array that
- * is not zero-terminated is considered a warning only, not fatal */
- ndr_check_string_terminator(ndr, length, byte_mul);
- }
-
ret = convert_string_talloc(ndr->current_mem_ctx,
chset, CH_UNIX,
ndr->data+ndr->offset,