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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user