traeak commented on code in PR #12593:
URL: https://github.com/apache/trafficserver/pull/12593#discussion_r4519294859
##########
plugins/regex_remap/regex_remap.cc:
##########
@@ -919,6 +927,26 @@ TSRemapNewInstance(int argc, char *argv[], void **ih, char
* /* errbuf ATS_UNUSE
ri->rule_hits.resize(ri->rule_set->rules().size());
}
+ auto const &rules = ri->rule_set->rules();
+
+ ri->strategy_actions.resize(rules.size());
+ for (size_t ix = 0; ix < rules.size(); ++ix) {
+ if (!rules[ix]->has_strategy_option()) {
+ continue;
+ }
Review Comment:
TSRemapNewInstance returns TS_ERROR when rule_set is null, a few lines above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]