diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index c77efa860660..bec3c2a3c7c5 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -1643,7 +1643,7 @@ sysctl_handler(int ac, char *av[], int which) ac--; av++; - if (*av == NULL) { + if (ac == 0) { warnx("missing keyword to enable/disable\n"); } else if (strncmp(*av, "firewall", strlen(*av)) == 0) { sysctlbyname("net.inet.ip.fw.enable", NULL, 0,