Skip to content

Commit

Permalink
[wireshark ja4t] fix to show options as "00" when tcp options do not …
Browse files Browse the repository at this point in the history
…exist
  • Loading branch information
noeltimothy committed Nov 6, 2024
1 parent 53ad7ea commit 1c4ba92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wireshark/source/packet-ja4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1c4ba92

Please sign in to comment.