From a2d9f07d4cdc7139e1d7ef0b6e394c89d5e5f1e1 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 05bd5cb6eef2f0adacc98fd2c94356006358d3d6) --- source3/librpc/ndr/ndr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit