r5084: - handle arbitrary data in the NULL record reply type for nbt name queries
[samba.git] / source / librpc / ndr / ndr.c
index 6947cc8ee674be71f758d90b550e3db68a61b4d1..032c743befd79fdd4dc89598bb6bb3f4b6bc782e 100644 (file)
@@ -436,6 +436,8 @@ static NTSTATUS ndr_pull_subcontext_header(struct ndr_pull *ndr,
                                           size_t sub_size,
                                           struct ndr_pull *ndr2)
 {
+       ndr2->flags = ndr->flags;
+
        switch (sub_size) {
        case 0: {
                uint32_t size = ndr->data_size - ndr->offset;