QUIC: minor fixes

LGTM found a real issue on a boundary check
Fix unit tests: a pcap ha been uploaded twice (with different names)
Fix compilation when using DPDK (see #990)
This commit is contained in:
Nardi Ivan
2020-08-24 13:53:36 +02:00
parent b8307eb855
commit 97b80a8838
7 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -845,7 +845,7 @@ static const uint8_t *get_crypto_data(struct ndpi_detection_module_struct *ndpi_
uint64_t unused;
counter = 0;
while(clear_payload[counter] == 0 && counter < clear_payload_len)
while(counter < clear_payload_len && clear_payload[counter] == 0)
counter += 1;
if(counter >= clear_payload_len)
return NULL;