diff options
Diffstat (limited to 'switchctl.c')
-rw-r--r-- | switchctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/switchctl.c b/switchctl.c index 1f119bc..b3150d5 100644 --- a/switchctl.c +++ b/switchctl.c @@ -342,7 +342,11 @@ int main(int argc, char* argv[]) } } log_printf(NOTICE, "just started..."); - options_parse_post(&opt); + if(options_parse_post(&opt)) { + options_clear(&opt); + log_close(); + exit(-1); + } priv_info_t priv; if(opt.username_) |