mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 21:26:51 +00:00
pf: include anchor path when hashing a rule
Otherwise all anchors hash to the same value. Note this can result in checksum mismatches between pfsynced hosts, but it has to be sorted out as the previously computed checksum would fail to indicate changed anchors. Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
1b8b69508b
commit
2f968abce5
|
@ -1260,6 +1260,8 @@ pf_hash_rule(MD5_CTX *ctx, struct pf_krule *rule)
|
|||
PF_MD5_UPD(rule, allow_opts);
|
||||
PF_MD5_UPD(rule, rt);
|
||||
PF_MD5_UPD(rule, tos);
|
||||
if (rule->anchor != NULL)
|
||||
PF_MD5_UPD_STR(rule, anchor->path);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
Loading…
Reference in a new issue