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)
committerGünther Deschner <gd@samba.org>
Tue, 11 Feb 2014 15:02:13 +0000 (16:02 +0100)
commite2a621466e740cc7fc2a659163f8895287c9a01e
treecc11efeb002f42e8f169cc153843ad334a1fdab9
parent91b3e415d59feeb31a8255d147622a32e1bc64f1
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>
Reviewed-by: Guenther Deschner <gd@samba.org>
librpc/ndr/libndr.h
librpc/ndr/ndr.c