aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-10-01 17:35:54 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-10-01 17:35:54 +0000
commitcc33247e335fd817275d9c5fef89b1cbb5e1f9b9 (patch)
treeaca3564925b7f8e740962d1455a8574918f85f7e /sys
parent7bdc285403a91e67d727b1558ed6d0222b804f2b (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_fw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index 0ad3aae916d2..f2b31e835eb2 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;
}