summaryrefslogtreecommitdiff
path: root/librpc/tools
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-08-23 15:54:26 +0200
committerJeremy Allison <jra@samba.org>2016-08-25 01:38:28 +0200
commitb57da250a69d244065ec535aac1fa49b7400d742 (patch)
treebaf8abeefddbdab37321fd702282db4369843e0f /librpc/tools
parentba297a6115cfb07d2ca9f74e5d83c09d3c875101 (diff)
downloadsamba-b57da250a69d244065ec535aac1fa49b7400d742.tar.gz
librpc/tools: support ndr64 in the validate path of ndrdump
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'librpc/tools')
-rw-r--r--librpc/tools/ndrdump.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/librpc/tools/ndrdump.c b/librpc/tools/ndrdump.c
index 2827e8d7fd0..d534e3c1dba 100644
--- a/librpc/tools/ndrdump.c
+++ b/librpc/tools/ndrdump.c
@@ -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));