diff options
author | luigi <luigi@FreeBSD.org> | 2001-10-01 17:35:54 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-10-01 17:35:54 +0000 |
commit | b607d229d2637ec738c04a04a0fa9fb82bd61a9b (patch) | |
tree | aca3564925b7f8e740962d1455a8574918f85f7e /sys/netinet | |
parent | 74a969f1c0385b77b114eddeb3519226af099032 (diff) | |
download | FreeBSD-src-b607d229d2637ec738c04a04a0fa9fb82bd61a9b.zip FreeBSD-src-b607d229d2637ec738c04a04a0fa9fb82bd61a9b.tar.gz |
Fix a problem with unnumbered rules introduced in latest commit.
Reported by: des
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 0ad3aae..f2b31e8 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -1654,9 +1654,9 @@ add_entry(struct ip_fw_head *head, struct ip_fw *rule) /* If entry number is 0, find highest numbered rule and add 100 */ if (ftmp->fw_number == 0) { - LIST_FOREACH(ftmp, head, next) { - if (ftmp->fw_number != IPFW_DEFAULT_RULE) - nbr = ftmp->fw_number; + LIST_FOREACH(fcp, head, next) { + if (fcp->fw_number != IPFW_DEFAULT_RULE) + nbr = fcp->fw_number; else break; } |