Added extra check to avoid nDPI wrong matches

This commit is contained in:
Luca Deri
2019-02-21 23:29:06 +01:00
parent ab3833a708
commit 47669abd44
+3 -1
View File
@@ -2007,8 +2007,10 @@ static int ac_match_handler(AC_MATCH_t *m, AC_TEXT_t *txt, AC_REP_t *match) {
has to match
*/
if(whatfound && (whatfound != buf)
&& (m->patterns->astring[0] != '.') /* The searched patter does not start with . */
&& strchr(m->patterns->astring, '.') /* The matched pattern has a . (e.g. numeric or sym IPs) */
&& (whatfound[-1] != '.'))
&& (whatfound[-1] != '.')
)
return(0);
}