aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2019-11-13 17:37:48 +0100
committerLuca <deri@ntop.org>2019-11-13 17:37:48 +0100
commit470d30ac239a5f851d9f6660391375aa6d581716 (patch)
tree0cd0dbb308a31c4db134f8310ac66a9dae895ccf
parent7e87bfd03924c54f4c98bdc64810e3578c174112 (diff)
Fixed SQL Injection detection
-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