From f113eb4e8a05bd44a93f027648715071fa4489ec Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 31 May 2020 00:43:17 -0400 Subject: [PATCH] Only produce hex dumps of information fields --- src/decode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/decode.c b/src/decode.c index a3bd123..641e884 100644 --- a/src/decode.c +++ b/src/decode.c @@ -130,8 +130,10 @@ static int frame_fprint(FILE *stream, goto error_io; } - if (hexdump_fprint(stream, data, len) < 0) { - goto error_io; + if (frame->info) { + if (hexdump_fprint(stream, frame->info, frame->len) < 0) { + goto error_io; + } } return 0;