@@ -928,8 +928,8 @@ dissect_ja4(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *dummy
928
928
//BUG-FIX: Ja4x should use Hex codes instead of ascii
929
929
const guint8 * bytes = fvalue_get_bytes_data (field -> value );
930
930
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 ]);
933
933
}
934
934
wmem_strbuf_append_printf (current_cert -> oids [oid_type ], "%x" , 0 );
935
935
}
@@ -939,8 +939,8 @@ dissect_ja4(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *dummy
939
939
//BUG-FIX: Ja4x should use Hex codes instead of ascii
940
940
const guint8 * bytes = fvalue_get_bytes_data (field -> value );
941
941
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 ]);
944
944
}
945
945
wmem_strbuf_append_printf (current_cert -> oids [oid_type ], "%x" , 0 );
946
946
}
0 commit comments