git: 317a5dd0288e - stable/15 - ipfw: do not use errno value for error reporting
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Oct 2025 12:05:33 UTC
The branch stable/15 has been updated by ae:
URL: https://cgit.FreeBSD.org/src/commit/?id=317a5dd0288e0382fc94ab44cc7b0a7918e7fe62
commit 317a5dd0288e0382fc94ab44cc7b0a7918e7fe62
Author: Boris Lytochkin <lytboris@gmail.com>
AuthorDate: 2025-10-14 08:02:20 +0000
Commit: Andrey V. Elsukov <ae@FreeBSD.org>
CommitDate: 2025-10-18 12:04:42 +0000
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
Differential Revision: https://reviews.freebsd.org/D53050
(cherry picked from commit dfd822b1f0846bdaa9a14457346f7431a86d3a64)
---
sbin/ipfw/tables.c | 3 ---
1 file changed, 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++) {