From f7cdd48892dafe00b8956cd2b087814d0257bdb4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 Dec 2013 21:51:04 +0100 Subject: config: don't check configuration before logging has been set up --- src/config.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 6b91383..9e04299 100644 --- a/src/config.c +++ b/src/config.c @@ -529,12 +529,9 @@ void fastd_configure(fastd_context_t *ctx, fastd_config_t *conf, int argc, char if (!conf->log_stderr_level && !conf->log_syslog_level && !conf->log_files) conf->log_stderr_level = FASTD_DEFAULT_LOG_LEVEL; +} - ctx->conf = conf; - - if (conf->generate_key || conf->show_key) - return; - +void fastd_config_check(fastd_context_t *ctx, fastd_config_t *conf) { if (conf->ifname) { if (strchr(conf->ifname, '/')) exit_error(ctx, "config error: invalid interface name"); -- cgit v1.2.3