aboutsummaryrefslogtreecommitdiff
path: root/httpd/patterns.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd/patterns.c')
-rw-r--r--httpd/patterns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd/patterns.c b/httpd/patterns.c
index 27a813f..34bd52b 100644
--- a/httpd/patterns.c
+++ b/httpd/patterns.c
@@ -673,7 +673,7 @@ str_match(const char *string, const char *pattern, struct str_match *m,
memset(m, 0, sizeof(*m));
ret = str_find_aux(&ms, pattern, string, sm, nsm, 0);
- if (ret == 0 || ms.error != NULL) {
+ if (ret <= 0 || ms.error != NULL) {
/* Return -1 on error and store the error string */
*errstr = ms.error;
return (-1);