diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-03-13 04:42:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:31 -0500 |
commit | 37aa32e2fe4829ec467c606cfcc7485508a2682c (patch) | |
tree | 146f8ede1e6013857d235f2a93fc92216d500224 /source/librpc | |
parent | 4766175ff2d0de8af92046e29280c7893ac8fe1f (diff) | |
download | samba-37aa32e2fe4829ec467c606cfcc7485508a2682c.tar.gz |
r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
Diffstat (limited to 'source/librpc')
-rw-r--r-- | source/librpc/ndr/ndr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/librpc/ndr/ndr.c b/source/librpc/ndr/ndr.c index d7529268637..0299eac13c0 100644 --- a/source/librpc/ndr/ndr.c +++ b/source/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) { |