aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Lytochkin <lytboris@gmail.com>2025-10-14 08:02:20 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2025-10-14 08:02:20 +0000
commitdfd822b1f0846bdaa9a14457346f7431a86d3a64 (patch)
tree529f44c2024ee34252ca35bb94c88aa68a7f675b
parent3c9a2f383fc25cdffa80c1348cb5388290e0f283 (diff)
ipfw: do not use errno value for error reporting
table_do_modify_record() already uses errno value on error. Also this fixes problem when `ipfw table add` returns ENOTTY that is unrelated to operation. Tested by: dhw Fixes: 09025a714708 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53050
-rw-r--r--sbin/ipfw/tables.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c
index 7c3b1bb35a01..245c0c9e0399 100644
--- a/sbin/ipfw/tables.c
+++ b/sbin/ipfw/tables.c
@@ -1037,9 +1037,6 @@ table_modify_record(ipfw_obj_header *oh, int ac, char *av[], int add,
}
}
- /* Get real OS error */
- error = errno;
-
/* Report results back */
ptent = tent_buf;
for (i = 0; i < count; ptent++, i++) {