Skip to content

Commit

Permalink
Merge pull request #182 from noeltimothy/main
Browse files Browse the repository at this point in the history
[wireshark ja4t] fix to show options as "00" when tcp options do not …
  • Loading branch information
john-althouse authored Nov 8, 2024
2 parents 53ad7ea + 1c4ba92 commit a554742
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 a554742

Please sign in to comment.