Fix FINS false positives (#2176)

* Fix FINS false positives

* Add rsv (reserved) field check
This commit is contained in:
Vladimir Gavrilov
2023-11-27 21:46:14 +01:00
committed by GitHub
parent ebb1bc2f34
commit 688a197b85
+3 -1
View File
@@ -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;
}