diff options
author | Luca Deri <deri@ntop.org> | 2019-02-14 10:31:42 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-02-14 10:31:42 +0100 |
commit | dc8d582b1813db1539c1ebc05f5614b634806192 (patch) | |
tree | e4823bffdf205ba46cee13f3c6363c7896ff0c68 /src/lib | |
parent | a035763afd3a2eb3d959d67152ea309cdb16d448 (diff) |
Fixes #671
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |