From: Arran Cudbard-Bell Date: Sun, 12 Feb 2023 19:06:12 +0000 (-0600) Subject: linelog: Typo X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca2f374550a345b71e0b47ef90d321473376f63;p=thirdparty%2Ffreeradius-server.git linelog: Typo --- diff --git a/src/modules/rlm_linelog/rlm_linelog.c b/src/modules/rlm_linelog/rlm_linelog.c index 4872e203597..e4120f0d101 100644 --- a/src/modules/rlm_linelog/rlm_linelog.c +++ b/src/modules/rlm_linelog/rlm_linelog.c @@ -545,6 +545,7 @@ static xlat_action_t linelog_xlat(TALLOC_CTX *ctx, fr_dcursor_t *out, static unlang_action_t CC_HINT(nonnull) mod_do_linelog(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request) { rlm_linelog_t const *inst = talloc_get_type_abort_const(mctx->inst->data, rlm_linelog_t); + CONF_SECTION *conf = mctx->inst->conf; char buff[4096]; @@ -559,6 +560,7 @@ static unlang_action_t CC_HINT(nonnull) mod_do_linelog(rlm_rcode_t *p_result, mo size_t vector_len; bool with_delim; + if (!inst->log_src && !inst->log_ref) { cf_log_err(conf, "A 'format', or 'reference' configuration item must be set to call this module"); RETURN_MODULE_FAIL;