diff options
author | csjp <csjp@FreeBSD.org> | 2004-05-09 01:53:31 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2004-05-09 01:53:31 +0000 |
commit | 02de288baa42c7ed6df99d0272fe1e2c776cf55a (patch) | |
tree | d74e610d0c0a418576f448a1ea0fc769552663a7 | |
parent | 0049080776deeeb2182331163461a72d6b72d3c2 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sbin/ipfw/ipfw2.c | 2 |
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; } |