Amazing.. two screwups in one commit.
I'm piling on thise pointy hats on top of each other. At least they nest..
This commit is contained in:
parent
dbadd6b028
commit
905c41b537
@ -4814,7 +4814,7 @@ table_handler(int ac, char *av[])
|
||||
else
|
||||
ent.value = 0;
|
||||
if (do_cmd(do_add ? IP_FW_TABLE_ADD : IP_FW_TABLE_DEL,
|
||||
&ent, sizeof(ent)) < 0)
|
||||
&ent, sizeof(ent)) < 0) {
|
||||
/* If running silent, don't bomb out on these errors. */
|
||||
if (!(do_quiet && (errno == (do_add ? EEXIST : ESRCH))))
|
||||
err(EX_OSERR, "setsockopt(IP_FW_TABLE_%s)",
|
||||
@ -4827,6 +4827,7 @@ table_handler(int ac, char *av[])
|
||||
err(EX_OSERR,
|
||||
"setsockopt(IP_FW_TABLE_ADD)");
|
||||
}
|
||||
}
|
||||
} else if (_substrcmp(*av, "flush") == 0) {
|
||||
if (do_cmd(IP_FW_TABLE_FLUSH, &ent.tbl, sizeof(ent.tbl)) < 0)
|
||||
err(EX_OSERR, "setsockopt(IP_FW_TABLE_FLUSH)");
|
||||
|
Loading…
Reference in New Issue
Block a user