From: Andrew Tridgell Date: Tue, 13 Mar 2007 04:42:49 +0000 (+0000) Subject: r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~951 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05bd5cb6eef2f0adacc98fd2c94356006358d3d6;p=thirdparty%2Fsamba.git r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure --- diff --git a/source/librpc/ndr/ndr.c b/source/librpc/ndr/ndr.c index ab73354540f..a692f398df5 100644 --- a/source/librpc/ndr/ndr.c +++ b/source/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) {