Fixed buffer overflow in DNS dissection

This commit is contained in:
Luca Deri
2019-11-26 17:42:59 +01:00
parent c7efd0892f
commit c223bb1f10
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -492,6 +492,7 @@ void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
ndpi_parse_packet_line_info(ndpi_struct, flow);
} else {
flow->l4.tcp.irc_3a_counter++;
packet->parsed_lines = 0;
}
for (i = 0; i < packet->parsed_lines; i++) {
if (packet->line[i].ptr[0] == ':') {