Latest update - 7427

This commit is contained in:
2018-12-12 12:53:04 +09:00
parent a8295ca677
commit 7ebc14b89c
3 changed files with 15 additions and 1 deletions
+3 -1
View File
@@ -2504,7 +2504,9 @@ ngx_http_regex_exec(ngx_http_request_t *r, ngx_http_regex_t *re, ngx_str_t *s)
if (re->ncaptures) {
len = cmcf->ncaptures;
if (r->captures == NULL) {
if (r->captures == NULL || r->realloc_captures) {
r->realloc_captures = 0;
r->captures = ngx_palloc(r->pool, len * sizeof(int));
if (r->captures == NULL) {
return NGX_ERROR;