From 81daf1bb5b54ecfeb314df3ef49378562eba983a Mon Sep 17 00:00:00 2001 From: mOo Date: Fri, 3 Mar 2006 09:37:06 +0000 Subject: [PATCH] fixed #557: %0 crashed with !~ git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1016 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/configfile-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configfile-glue.c b/src/configfile-glue.c index 5c3c68ba..64018549 100644 --- a/src/configfile-glue.c +++ b/src/configfile-glue.c @@ -372,8 +372,8 @@ static cond_result_t config_check_cond_nocache(server *srv, connection *con, dat n = pcre_exec(dc->regex, dc->regex_study, l->ptr, l->used - 1, 0, 0, cache->matches, elementsof(cache->matches)); + cache->patterncount = n; if (n > 0) { - cache->patterncount = n; cache->comp_value = l; return (dc->cond == CONFIG_COND_MATCH) ? COND_RESULT_TRUE : COND_RESULT_FALSE; } else {