From: Guenter Knauf Date: Sun, 14 Apr 2013 02:50:19 +0000 (+0000) Subject: Whoops, one AP_MAX_REG_MATCH not caught. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=883ecfc40009c0394c9c1b8af41a3a6786c0dadc;p=thirdparty%2Fapache%2Fhttpd.git Whoops, one AP_MAX_REG_MATCH not caught. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1467719 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 4a26defae17..75ba18a4e4b 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -928,7 +928,7 @@ static int lua_ap_regex(lua_State *L) } lua_newtable(L); - for (i = 0; i <= regex.re_nsub && i <= AP_MAX_REG_MATCH; i++) { + for (i = 0; i <= regex.re_nsub && i <= MODLUA_MAX_REG_MATCH; i++) { lua_pushinteger(L, i); if (matches[i].rm_so >= 0 && matches[i].rm_eo >= 0) lua_pushstring(L,