Fix a typo to catch correct condition.
This commit is contained in:
parent
ec2aeb2fc1
commit
3a1abb4c43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270518
@ -177,7 +177,7 @@ main(int argc, char *argv[])
|
||||
setoid(oid, sizeof(oid), NULL);
|
||||
argc -= 1, argv += 1;
|
||||
} else if (strcmp(argv[1], "-i") == 0) {
|
||||
if (argc < 2)
|
||||
if (argc <= 2)
|
||||
errx(1, "missing interface name for -i option");
|
||||
if (strncmp(argv[2], "wlan", 4) != 0)
|
||||
errx(1, "expecting a wlan interface name");
|
||||
|
Loading…
Reference in New Issue
Block a user