Skip to content

Commit

Permalink
ndrdump: Allow a long string of hexidecimal digits as well as a hex d…
Browse files Browse the repository at this point in the history
…ump for --hex-input

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
  • Loading branch information
abartlet committed Mar 31, 2023
1 parent e37f20f commit 053aa51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions librpc/tools/ndrdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 053aa51

Please sign in to comment.