diff options
author | Reyk Floeter <reyk@esdenera.com> | 2015-08-03 17:32:39 +0200 |
---|---|---|
committer | Reyk Floeter <reyk@esdenera.com> | 2015-08-03 17:32:39 +0200 |
commit | e1f3ff7d6b8c6b349516f4ddae7c9c4eb27c680e (patch) | |
tree | 312f9b5c17f72030b35093a4d94222602b470b4b | |
parent | d10b9ddf97b877ba2800f34ca20472167c66e973 (diff) | |
parent | 901c758f117d1137cad40ffda4378b467472e3aa (diff) | |
download | httpd-e1f3ff7d6b8c6b349516f4ddae7c9c4eb27c680e.tar.gz httpd-e1f3ff7d6b8c6b349516f4ddae7c9c4eb27c680e.zip |
Merge branch '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); |