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
This commit is contained in:
parent
3f39cca96b
commit
19d4beceb2
@ -3388,8 +3388,6 @@ add(int ac, char *av[])
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user