summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/librpc/ndr/ndr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c
index ab73354540..a692f398df 100644
--- a/source3/librpc/ndr/ndr.c
+++ b/source3/librpc/ndr/ndr.c
@@ -168,7 +168,8 @@ NTSTATUS ndr_push_expand(struct ndr_push *ndr, uint32_t extra_size)
if (size < ndr->offset) {
/* extra_size overflowed the offset */
- return NT_STATUS_NO_MEMORY;
+ return ndr_push_error(ndr, NDR_ERR_BUFSIZE, "Overflow in push_expand to %u",
+ size);
}
if (ndr->alloc_size > size) {