Don't bitch if we're using references and the format config item has been removed
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Sep 2014 21:11:56 +0000 (17:11 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Sep 2014 21:12:17 +0000 (17:12 -0400)
src/modules/rlm_linelog/rlm_linelog.c

index 877e208..14dd90e 100644 (file)
@@ -114,8 +114,8 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
        inst->facility |= LOG_INFO;
 #endif
 
-       if (!inst->line) {
-               cf_log_err_cs(conf, "Must specify a log format");
+       if (!inst->line && !inst->reference) {
+               cf_log_err_cs(conf, "Must specify a log format, or reference");
                return -1;
        }