diff options
author | Luca Deri <deri@ntop.org> | 2023-06-21 21:26:29 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-06-21 21:26:29 +0200 |
commit | 8dbd591053274fc1faddc1eff355fda9f5ad79a5 (patch) | |
tree | d1a2acd80559fab66473a9654f4046b6b2d090f7 | |
parent | cc582052b384f7e7e40dc1193683fcb353864d16 (diff) |
Waring fix
-rw-r--r-- | src/lib/protocols/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 45965f62d..10c6fb6f0 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -1123,7 +1123,7 @@ static int ndpi_search_tls_tcp(struct ndpi_detection_module_struct *ndpi_struct, if(flow->tls_quic.certificate_processed) { if(flow->l4.tcp.tls.num_tls_blocks < ndpi_struct->num_tls_blocks_to_follow) flow->l4.tcp.tls.tls_application_blocks_len[flow->l4.tcp.tls.num_tls_blocks++] = - (packet->packet_direction == 0) ? (len-5) : -(len-5); + (packet->packet_direction == 0) ? (len-5) : (-(int16_t)(len - 5)); #ifdef DEBUG_TLS_BLOCKS printf("*** [TLS Block] [len: %u][num_tls_blocks: %u/%u]\n", |