aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2015-08-03 17:31:42 +0200
committerReyk Floeter <reyk@esdenera.com>2015-08-03 17:31:42 +0200
commit901c758f117d1137cad40ffda4378b467472e3aa (patch)
tree312f9b5c17f72030b35093a4d94222602b470b4b
parentd10b9ddf97b877ba2800f34ca20472167c66e973 (diff)
parentb84cdb54428bfe77168d9532704e4532c0ff0d1d (diff)
downloadhttpd-901c758f117d1137cad40ffda4378b467472e3aa.tar.gz
httpd-901c758f117d1137cad40ffda4378b467472e3aa.zip
Merge branch 'str-find-aux-neg' of ssh://github.com/lpereira/httpd into lpereira-str-find-aux-neg
-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);