]> git.ipfire.org Git - thirdparty/samba.git/commit
librpc/rpc: let dcerpc_read_ncacn_packet_next_vector() handle fragments without any...
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Aug 2023 14:16:27 +0000 (16:16 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 8 Aug 2023 08:02:40 +0000 (08:02 +0000)
commit5c724a3e156ae734e4d187bf9639d895bb011834
tree66a76964fcd7bddb413ce5955fb747a8c7337271
parentc37adb762640b7df9731d6a60edce808aa8787f8
librpc/rpc: let dcerpc_read_ncacn_packet_next_vector() handle fragments without any payload

DCERPC_PKT_CO_CANCEL and DCERPC_PKT_ORPHANED don't have any payload by
default. In order to receive them via dcerpc_read_ncacn_packet_send/recv
we need to allow fragments with frag_len == DCERPC_NCACN_PAYLOAD_OFFSET.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15446

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
librpc/rpc/dcerpc_util.c