nginx-util: fix SEGFAULT from regex_search
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 9 May 2024 17:17:38 +0000 (19:17 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 9 May 2024 17:20:22 +0000 (19:20 +0200)
commit3aa746b2461c09adfa32853bbef6f746cdefad75
tree927070cb6a1aadfc6fe20ce1bad9750d37882658
parent32a22201db1e35af4fcc9edfff33bdd24c78f031
nginx-util: fix SEGFAULT from regex_search

In converting nginx-util to PCRE2, it was wrongly dropped saving the
results of the regex match causing segmentation fault when used.

Add the missing code to correctly store the vector of the results from
the regex.

Fixes: b738e42c4de8 ("nginx-util: move to pcre2")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
net/nginx-util/Makefile
net/nginx-util/src/regex-pcre.hpp