diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2021-08-20 18:11:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 18:11:37 +0200 |
commit | 9e0f0ce3df69023bc2acca5536efca134363380e (patch) | |
tree | 4a5ac39d201e66ed35c4317b2a27e329299d9c76 /src/lib/protocols/quic.c | |
parent | 8fdffbf3a17ebfc8e7043264cce516d23e9f5345 (diff) |
Fix access to some TLS fields in flow structure (#1277)
Fields 'tls.hello_processed` and `tls.subprotocol_detected` are used by
QUIC (i.e UDP...), too.
Diffstat (limited to 'src/lib/protocols/quic.c')
-rw-r--r-- | src/lib/protocols/quic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index a508c30ef..6790e6bb8 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -1297,7 +1297,7 @@ static void process_tls(struct ndpi_detection_module_struct *ndpi_struct, packet->payload_packet_len = crypto_data_len; processClientServerHello(ndpi_struct, flow, version); - flow->l4.tcp.tls.hello_processed = 1; /* Allow matching of custom categories */ + flow->protos.tls_quic_stun.tls_quic.hello_processed = 1; /* Allow matching of custom categories */ /* Restore */ packet->payload = p; @@ -1368,7 +1368,7 @@ static void process_chlo(struct ndpi_detection_module_struct *ndpi_struct, (char *)flow->protos.tls_quic_stun.tls_quic.client_requested_server_name, strlen((const char*)flow->protos.tls_quic_stun.tls_quic.client_requested_server_name), &ret_match, NDPI_PROTOCOL_QUIC); - flow->l4.tcp.tls.hello_processed = 1; /* Allow matching of custom categories */ + flow->protos.tls_quic_stun.tls_quic.hello_processed = 1; /* Allow matching of custom categories */ ndpi_check_dga_name(ndpi_struct, flow, flow->protos.tls_quic_stun.tls_quic.client_requested_server_name, 1); |