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/ndpi_utils.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/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index a7ba2818e..b1d1fcdb0 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -856,7 +856,7 @@ static const char* ndpi_get_flow_info_by_proto_id(struct ndpi_flow_struct const return (char const *)flow->host_server_name; case NDPI_PROTOCOL_QUIC: case NDPI_PROTOCOL_TLS: - if (flow->l4.tcp.tls.hello_processed != 0) + if (flow->protos.tls_quic_stun.tls_quic.hello_processed != 0) { return flow->protos.tls_quic_stun.tls_quic.client_requested_server_name; } |