diff options
author | Reyk Floeter <reyk@esdenera.com> | 2015-08-03 17:31:42 +0200 |
---|---|---|
committer | Reyk Floeter <reyk@esdenera.com> | 2015-08-03 17:31:42 +0200 |
commit | 901c758f117d1137cad40ffda4378b467472e3aa (patch) | |
tree | 312f9b5c17f72030b35093a4d94222602b470b4b | |
parent | d10b9ddf97b877ba2800f34ca20472167c66e973 (diff) | |
parent | b84cdb54428bfe77168d9532704e4532c0ff0d1d (diff) | |
download | httpd-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.c | 2 |
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); |