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:
Julian Elischer 2006-03-31 12:54:17 +00:00
parent dbadd6b028
commit 905c41b537
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157335

View File

@ -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)");