summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2006-03-31 12:54:17 +0000
committerjulian <julian@FreeBSD.org>2006-03-31 12:54:17 +0000
commit44c376893968817ddb19d4a2ef12f8bf0970fbe0 (patch)
tree28642cee8aa49a234e15290463b1de0b3c47beb1 /sbin
parentbce212e4e5ce65f246a90972498cc75a379adefe (diff)
downloadFreeBSD-src-44c376893968817ddb19d4a2ef12f8bf0970fbe0.zip
FreeBSD-src-44c376893968817ddb19d4a2ef12f8bf0970fbe0.tar.gz
Amazing.. two screwups in one commit.
I'm piling on thise pointy hats on top of each other. At least they nest..
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/ipfw2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 6782dfc..6a85b9c 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -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)");
OpenPOWER on IntegriCloud