previous behavior that stops when any rule matches within quick
anchors.
ok sasha kn
-/* $OpenBSD: pf.c,v 1.1170 2023/01/12 13:09:47 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.1171 2023/01/22 23:05:51 yasuoka Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
}
if (pf_anchor_stack_pop(&ruleset, &r, &child, &target) == 0) {
+ /* stop if any rule matched within quick anchors. */
+ if (r->quick == PF_TEST_QUICK && *ctx->am == r)
+ return (PF_TEST_QUICK);
+
switch (target) {
case PF_NEXT_CHILD:
goto next_child;