librpc/ndr: add NDR_ERR_INCOMPLETE_BUFFER and LIBNDR_FLAG_INCOMPLETE_BUFFER
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Mar 2011 09:14:51 +0000 (10:14 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Oct 2013 05:17:48 +0000 (07:17 +0200)
commitb4f0aa177f88d81723aeeeac3bb928363beda9a0
tree2386203ab181d0364c837899a42560ba2dcbe8c4
parent39955f0e0ced93341a3df71c6327de8f4b5aa3d0
librpc/ndr: add NDR_ERR_INCOMPLETE_BUFFER and LIBNDR_FLAG_INCOMPLETE_BUFFER

If we pull a pipe chunk we need a way to check if we
have enough bytes to parse the complete chunk.

Setting ndr_pull->flags |= LIBNDR_FLAG_INCOMPLETE_BUFFER
would change NDR_ERR_BUFSIZE (and later maybe others)
into NDR_ERR_INCOMPLETE_BUFFER.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
librpc/ndr/libndr.h
librpc/ndr/ndr.c