From dc8d582b1813db1539c1ebc05f5614b634806192 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 14 Feb 2019 10:31:42 +0100 Subject: Fixes #671 --- src/lib/ndpi_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index fe63c8093..f96f0e763 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2006,7 +2006,9 @@ static int ac_match_handler(AC_MATCH_t *m, AC_TEXT_t *txt, AC_REP_t *match) { to avoid matching aws.amazon.com whereas a.ws.amazon.com has to match */ - if(whatfound && (whatfound != buf) && (whatfound[-1] != '.')) + if(whatfound && (whatfound != buf) + && strchr(m->patterns->astring, '.') /* The matched pattern has a . (e.g. numeric or sym IPs) */ + && (whatfound[-1] != '.')) return(0); } -- cgit v1.2.3