From 4a0eda69ad9755aa6f922a2c786b3bf93c777f77 Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Tue, 3 Oct 2023 20:22:31 +0200 Subject: QUIC: export QUIC version as metadata --- fuzz/fuzz_quic_get_crypto_data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fuzz') diff --git a/fuzz/fuzz_quic_get_crypto_data.c b/fuzz/fuzz_quic_get_crypto_data.c index 728b7ec67..7c783799b 100644 --- a/fuzz/fuzz_quic_get_crypto_data.c +++ b/fuzz/fuzz_quic_get_crypto_data.c @@ -9,7 +9,6 @@ struct ndpi_flow_struct *flow = NULL; extern const uint8_t *get_crypto_data(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, - uint32_t version, u_int8_t *clear_payload, uint32_t clear_payload_len, uint64_t *crypto_data_len); extern void process_tls(struct ndpi_detection_module_struct *ndpi_struct, @@ -49,8 +48,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { memset(flow, '\0', sizeof(*flow)); flow->detected_protocol_stack[0] = NDPI_PROTOCOL_QUIC; flow->l4_proto = IPPROTO_UDP; + flow->protos.tls_quic.quic_version = version; - crypto_data = get_crypto_data(ndpi_info_mod, flow, version, (u_int8_t *)Data + 4, Size - 4, &crypto_data_len); + crypto_data = get_crypto_data(ndpi_info_mod, flow, (u_int8_t *)Data + 4, Size - 4, &crypto_data_len); if(crypto_data) { if(!is_version_with_tls(version)) { -- cgit v1.2.3