Skip to content

Commit dff93de

Browse files
authored
fix warnings on mac (#139)
* fixed Ja4x errors, warnings and built new binary for windows * fix warnings on mac
1 parent 2f0cc26 commit dff93de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wireshark/source/packet-ja4.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,8 @@ dissect_ja4(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *dummy
928928
//BUG-FIX: Ja4x should use Hex codes instead of ascii
929929
const guint8 *bytes = fvalue_get_bytes_data(field->value);
930930
gsize size = g_bytes_get_size(fvalue_get_bytes(field->value));
931-
for (int i=0; i<size; i++) {
932-
wmem_strbuf_append_printf(current_cert->oids[oid_type], "%02x", bytes[i]);
931+
for (int j=0; j< (int)size; j++) {
932+
wmem_strbuf_append_printf(current_cert->oids[oid_type], "%02x", bytes[j]);
933933
}
934934
wmem_strbuf_append_printf(current_cert->oids[oid_type], "%x", 0);
935935
}
@@ -939,8 +939,8 @@ dissect_ja4(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *dummy
939939
//BUG-FIX: Ja4x should use Hex codes instead of ascii
940940
const guint8 *bytes = fvalue_get_bytes_data(field->value);
941941
gsize size = g_bytes_get_size(fvalue_get_bytes(field->value));
942-
for (int i=0; i<size; i++) {
943-
wmem_strbuf_append_printf(current_cert->oids[oid_type], "%02x", bytes[i]);
942+
for (int j=0; j< (int)size; j++) {
943+
wmem_strbuf_append_printf(current_cert->oids[oid_type], "%02x", bytes[j]);
944944
}
945945
wmem_strbuf_append_printf(current_cert->oids[oid_type], "%x", 0);
946946
}

0 commit comments

Comments
 (0)