--- fwsync/patches/sync.c 2022/06/22 13:01:55 1.1 +++ fwsync/patches/sync.c 2022/08/12 11:32:28 1.2 @@ -104,7 +104,7 @@ ipfw_config_sync(int ac, char **av) if (inet_pton(AF_INET6, host, &cfg->addr[0].ip6.sin6_addr) != 1) errx(EX_DATAERR, "invalid edge IPv6 address\n"); } - } else if (!strcmp(*av, "collector")) { + } else if (ac && !strcmp(*av, "collector")) { SYNC_SHIFT_ARG; if (!ac) errx(EX_DATAERR, "missing destination(s) address[,port]\n");