summaryrefslogtreecommitdiff
path: root/source3/librpc/ndr
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-03-13 04:42:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:36 -0500
commita2d9f07d4cdc7139e1d7ef0b6e394c89d5e5f1e1 (patch)
tree63242c439828a9367ad470ccb4ff7abcd3c33549 /source3/librpc/ndr
parent5e74df4202f38c1bee05d45cd5e576a97ed6f821 (diff)
downloadsamba-a2d9f07d4cdc7139e1d7ef0b6e394c89d5e5f1e1.tar.gz
samba-a2d9f07d4cdc7139e1d7ef0b6e394c89d5e5f1e1.tar.bz2
samba-a2d9f07d4cdc7139e1d7ef0b6e394c89d5e5f1e1.zip
r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 05bd5cb6eef2f0adacc98fd2c94356006358d3d6)
Diffstat (limited to 'source3/librpc/ndr')
-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) {