From 49c2a707ce06f73a14addccc93cf403d13c15371 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 6 Mar 2020 15:44:37 +0100 Subject: [PATCH] BUG/MINOR: http-rules: Abort transaction when a redirect is applied on response In the same way than for the request, when a redirect rule is applied the transction is aborted. This must be done returning HTTP_RULE_RES_ABRT from http_res_get_intercept_rule() function. No backport needed because on previous versions, the action return values are not handled the same way. --- src/http_ana.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_ana.c b/src/http_ana.c index 34967b876e..88f7937b19 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -3110,7 +3110,7 @@ resume_execution: break; case ACT_HTTP_REDIR: - rule_ret = HTTP_RULE_RES_DONE; + rule_ret = HTTP_RULE_RES_ABRT; if (!http_apply_redirect_rule(rule->arg.redir, s, txn)) rule_ret = HTTP_RULE_RES_ERROR; goto end; -- 2.47.3