mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUG/MINOR: rules: Return ACT_RET_ABRT when a silent-drop action is executed
When an action interrupts a transaction, returning a response or not, it must return the ACT_RET_ABRT value and not ACT_RET_STOP. ACT_RET_STOP is reserved to stop the processing of the current ruleset. No backport needed because on previous versions, the action return values are not handled the same way.
This commit is contained in:
parent
177f480f2c
commit
f573ba2033
@ -1276,7 +1276,7 @@ static enum act_return tcp_exec_action_silent_drop(struct act_rule *rule, struct
|
||||
if (sess->listener->counters)
|
||||
_HA_ATOMIC_ADD(&sess->listener->counters->denied_req, 1);
|
||||
|
||||
return ACT_RET_STOP;
|
||||
return ACT_RET_ABRT;
|
||||
}
|
||||
|
||||
/* parse "set-{src,dst}[-port]" action */
|
||||
|
Loading…
Reference in New Issue
Block a user