diff --git a/client/fwknop.c b/client/fwknop.c index 0deae9a8..1cea8bd8 100644 --- a/client/fwknop.c +++ b/client/fwknop.c @@ -606,6 +606,10 @@ run_last_args(fko_cli_options_t *options) } fclose(args_file_ptr); + /* Reset the options index so we can run through them again. + */ + optind = 0; + config_init(options, argc_new, argv_new); }