git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e37f20f
)
ndrdump: Allow a long string of hexidecimal digits as well as a hex dump for --hex...
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 27 Mar 2023 22:38:15 +0000
(11:38 +1300)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 31 Mar 2023 01:48:30 +0000
(
01:48
+0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
librpc/tools/ndrdump.c
patch
|
blob
|
history
diff --git
a/librpc/tools/ndrdump.c
b/librpc/tools/ndrdump.c
index 0d39ed3714bf28a65aa046a2dab8efe48f4c5415..26f885ccd10096479ad57ff14d84af84d19f5e72 100644
(file)
--- a/
librpc/tools/ndrdump.c
+++ b/
librpc/tools/ndrdump.c
@@
-549,6
+549,8
@@
static void ndr_print_dummy(struct ndr_print *ndr, const char *format, ...)
TALLOC_FREE(mem_ctx);
exit(1);
+ } else if (hex_input && size >= 1 && data[0] != '[') {
+ blob = strhex_to_data_blob(mem_ctx, (const char *)data);
} else if (hex_input) {
blob = hexdump_to_data_blob(mem_ctx, (const char *)data, size);
} else if (base64_input) {