Skip to content

Commit dfd822b

Browse files
lytborisbu7cher
authored andcommitted
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: 09025a7 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53050
1 parent 3c9a2f3 commit dfd822b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sbin/ipfw/tables.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,6 @@ table_modify_record(ipfw_obj_header *oh, int ac, char *av[], int add,
10371037
}
10381038
}
10391039

1040-
/* Get real OS error */
1041-
error = errno;
1042-
10431040
/* Report results back */
10441041
ptent = tent_buf;
10451042
for (i = 0; i < count; ptent++, i++) {

0 commit comments

Comments
 (0)