From c8cfbfdc8bf6b6bf6da948d718a65957076c5472 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 13 Mar 2007 04:42:49 +0000 Subject: r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure (This used to be commit 37aa32e2fe4829ec467c606cfcc7485508a2682c) --- source4/librpc/ndr/ndr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index d752926863..0299eac13c 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -156,7 +156,8 @@ _PUBLIC_ 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) { -- cgit