diff --git a/src/http_ana.c b/src/http_ana.c index 4789826694601..b86dfade754f2 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -2705,6 +2705,8 @@ static enum rule_result http_req_get_intercept_rule(struct proxy *px, struct lis send_log(s->be, LOG_WARNING, "Internal error: action yields while it is no long allowed " "for the http-request actions."); + s->last_rule_file = rule->conf.file; + s->last_rule_line = rule->conf.line; rule_ret = HTTP_RULE_RES_ERROR; goto end; } @@ -2875,6 +2877,8 @@ static enum rule_result http_res_get_intercept_rule(struct proxy *px, struct lis send_log(s->be, LOG_WARNING, "Internal error: action yields while it is no long allowed " "for the http-response/http-after-response actions."); + s->last_rule_file = rule->conf.file; + s->last_rule_line = rule->conf.line; rule_ret = HTTP_RULE_RES_ERROR; goto end; } diff --git a/src/tcp_rules.c b/src/tcp_rules.c index c7bdddccaad62..f628da227748b 100644 --- a/src/tcp_rules.c +++ b/src/tcp_rules.c @@ -173,6 +173,8 @@ int tcp_inspect_request(struct stream *s, struct channel *req, int an_bit) send_log(s->be, LOG_WARNING, "Internal error: yield not allowed if the inspect-delay expired " "for the tcp-request content actions."); + s->last_rule_file = rule->conf.file; + s->last_rule_line = rule->conf.line; goto internal; } goto missing_data; @@ -355,6 +357,8 @@ int tcp_inspect_response(struct stream *s, struct channel *rep, int an_bit) send_log(s->be, LOG_WARNING, "Internal error: yield not allowed if the inspect-delay expired " "for the tcp-response content actions."); + s->last_rule_file = rule->conf.file; + s->last_rule_line = rule->conf.line; goto internal; } channel_dont_close(rep);