diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 21:51:04 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 21:51:04 +0100 |
commit | f7cdd48892dafe00b8956cd2b087814d0257bdb4 (patch) | |
tree | b7e0d7174f5772f3d5acad78a6e0e5f080ff4171 /src/config.c | |
parent | 794958aa7834c6703e369d15b99fe0b38a8edb05 (diff) | |
download | fastd-f7cdd48892dafe00b8956cd2b087814d0257bdb4.tar fastd-f7cdd48892dafe00b8956cd2b087814d0257bdb4.zip |
config: don't check configuration before logging has been set up
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 7 |
1 files changed, 2 insertions, 5 deletions
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"); |