Fix FINS false positives (#2176)
* Fix FINS false positives * Add rsv (reserved) field check
This commit is contained in:
@@ -82,7 +82,9 @@ static void ndpi_search_fins(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
goto not_fins;
|
||||
}
|
||||
|
||||
if ((fins->dna > 0x7F) || (fins->sna > 0x7F)) {
|
||||
if ((fins->dna > 0x7F) || (fins->sna > 0x7F) ||
|
||||
(fins->gct != 0x02) || (fins->rsv != 0))
|
||||
{
|
||||
goto not_fins;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user