summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2004-05-09 01:53:31 +0000
committercsjp <csjp@FreeBSD.org>2004-05-09 01:53:31 +0000
commit02de288baa42c7ed6df99d0272fe1e2c776cf55a (patch)
treed74e610d0c0a418576f448a1ea0fc769552663a7 /sbin/ipfw
parent0049080776deeeb2182331163461a72d6b72d3c2 (diff)
downloadFreeBSD-src-02de288baa42c7ed6df99d0272fe1e2c776cf55a.zip
FreeBSD-src-02de288baa42c7ed6df99d0272fe1e2c776cf55a.tar.gz
Remove redundant sanity check before add_mac() when adding
mac ipfw rules. The exact same sanity check is performed as the first operation of add_mac(), so there is no sense in doing it twice. Approved by: bmilekic (mentor) PR: bin/55981
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index b0c28f6..0421995 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -3388,8 +3388,6 @@ read_options:
break;
case TOK_MAC:
- if (ac < 2)
- errx(EX_USAGE, "MAC dst-mac src-mac");
if (add_mac(cmd, ac, av)) {
ac -= 2; av += 2;
}
OpenPOWER on IntegriCloud