]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Conf options have CONF_FLAG_REQURED so will exist
authorNick Porter <nick@portercomputing.co.uk>
Wed, 14 Feb 2024 13:54:43 +0000 (13:54 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 15 Feb 2024 16:32:35 +0000 (16:32 +0000)
src/modules/rlm_sqlcounter/rlm_sqlcounter.c

index 3186dfdf517d9763da58639343240e9a09fdb077..0b287e631e81dcbdee0fb4ef711ebc8622fa9d14 100644 (file)
@@ -453,11 +453,6 @@ static int mod_bootstrap(module_inst_ctx_t const *mctx)
        CONF_SECTION            *conf = mctx->inst->conf;
        fr_dict_attr_flags_t    flags = (fr_dict_attr_flags_t) { .internal = 1, .length = 8 };
 
-       /*
-        *      Create a new attribute for the counter.
-        */
-       fr_assert(inst->counter_attr);
-       fr_assert(inst->limit_attr);
 
        if (tmpl_attr_tail_unresolved_add(fr_dict_unconst(dict_freeradius), inst->start_attr, FR_TYPE_UINT64, &flags) < 0) {
                cf_log_perr(conf, "Failed defining reset_period_start attribute");