]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Can just pass cp here...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Oct 2018 01:05:54 +0000 (21:05 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 10 Dec 2018 16:20:35 +0000 (11:20 -0500)
src/lib/server/cf_parse.c

index a3f01c432fac1a9ac04aecbeb5e3b89d880c3fc5..4677a389efece9d490ae60c3c1c5230cc2d035ef 100644 (file)
@@ -1375,7 +1375,7 @@ int cf_section_parse_pass2(void *base, CONF_SECTION *cs)
                        }
 
                        if (attribute && (vpt->type != TMPL_TYPE_ATTR)) {
-                               cf_log_err(&cp->item, "Expected attr got %s",
+                               cf_log_err(cp, "Expected attr got %s",
                                           fr_int2str(tmpl_type_table, vpt->type, "???"));
                                return -1;
                        }
@@ -1385,7 +1385,7 @@ int cf_section_parse_pass2(void *base, CONF_SECTION *cs)
                         *      All attributes should have been defined by this point.
                         */
                        case TMPL_TYPE_ATTR_UNDEFINED:
-                               cf_log_err(&cp->item, "Unknown attribute '%s'", vpt->tmpl_unknown_name);
+                               cf_log_err(cp, "Unknown attribute '%s'", vpt->tmpl_unknown_name);
                                talloc_free(vpt);       /* Free last (vpt needed for log) */
                                return -1;