diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-01-01 03:53:23 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-01-01 03:53:23 +0000 |
commit | e300501e7576c62a5beade4ef35433795899472f (patch) | |
tree | 8e8b54107ed20a492c1b6f03d1f2a257d5bb4927 /sys/net/pf.c | |
parent | bb31c0fb9dda3ce2c33e95807bb7b3f6b82870d8 (diff) |
Fix breakage from PF_RULESET_MAX increase, regress tests match again.
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 750aab15214..9951290280b 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.290 2002/12/31 19:18:41 mcbride Exp $ */ +/* $OpenBSD: pf.c,v 1.291 2003/01/01 03:53:22 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -770,15 +770,13 @@ pf_update_anchor_rules() struct pf_rule *rule; int i; - for (i = 0; i < 4; i++) { - TAILQ_FOREACH(rule, - pf_main_ruleset.rules[i].active.ptr, entries) { + for (i = 0; i < PF_RULESET_MAX; ++i) + TAILQ_FOREACH(rule, pf_main_ruleset.rules[i].active.ptr, + entries) if (rule->anchorname[0]) rule->anchor = pf_find_anchor(rule->anchorname); else rule->anchor = NULL; - } - } } u_int16_t |