aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ndpi_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index bf3f748be..ed07d6ba6 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1148,7 +1148,7 @@ static int find_occurrency(char *str, char *what) {
len = strlen(what);
- if((found[len] != '\0') && (found[len] != ' ')
+ if(((found[len] != '\0') || (found[len] != ' '))
&& ((found == str) || (found[-1] == ' ')))
return(1);
else