librpc/tools: support ndr64 in the validate path of ndrdump
[kai/samba-autobuild/.git] / librpc / tools / ndrdump.c
index 2827e8d7fd0dbdffa391cbb74d9dc2fc7c174586..d534e3c1dbaa8ff203826760984071776f68cd04 100644 (file)
@@ -493,7 +493,11 @@ static void ndr_print_dummy(struct ndr_print *ndr, const char *format, ...)
                bool differ;
 
                ndr_v_push = ndr_push_init_ctx(mem_ctx);
-               
+
+               if (assume_ndr64) {
+                       ndr_v_push->flags |= LIBNDR_FLAG_NDR64;
+               }
+
                ndr_err = f->ndr_push(ndr_v_push, flags, st);
                status = ndr_map_error2ntstatus(ndr_err);
                printf("push returned %s\n", nt_errstr(status));