mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 37aa32e2fe4829ec467c606cfcc7485508a2682c)
This commit is contained in:
parent
dd0b2572eb
commit
c8cfbfdc8b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user