From 1c4ba92e0768abc1decaee84097a9339c236b2e3 Mon Sep 17 00:00:00 2001 From: Timothy Noel Date: Wed, 6 Nov 2024 17:59:38 -0500 Subject: [PATCH] [wireshark ja4t] fix to show options as "00" when tcp options do not exist --- wireshark/source/packet-ja4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireshark/source/packet-ja4.c b/wireshark/source/packet-ja4.c index 1334379..1fdb206 100644 --- a/wireshark/source/packet-ja4.c +++ b/wireshark/source/packet-ja4.c @@ -661,14 +661,14 @@ char *ja4t (ja4t_info_t *data, conn_info_t *conn) { wmem_strbuf_append_printf(display, "%d_%s_%02d_%02d", data->window_size, - (wmem_strbuf_get_len(data->tcp_options) == 0) ? "0" : wmem_strbuf_get_str(data->tcp_options), + (wmem_strbuf_get_len(data->tcp_options) == 0) ? "00" : wmem_strbuf_get_str(data->tcp_options), data->mss_val, data->window_scale); } else { wmem_strbuf_append_printf(display, "%d_%s_%02d_%d", data->window_size, - (wmem_strbuf_get_len(data->tcp_options) == 0) ? "0" : wmem_strbuf_get_str(data->tcp_options), + (wmem_strbuf_get_len(data->tcp_options) == 0) ? "00" : wmem_strbuf_get_str(data->tcp_options), data->mss_val, data->window_scale); }