if (!fr_cond_assert(parent)) {
fr_strerror_printf("%s: Invalid argument - parent was NULL", __FUNCTION__);
- return -1;
+ return NULL;
}
/*
"attributes, not '%s'", fr_int2str(dict_attr_types, parent->type, "?Unknown?"));
return -1;
}
-
-
- return 0;
}
/** Initialise a fr_dict_attr_t from an ASCII attribute and value
* Find the first invalid attribute name char in the string pointed to by name.
*
* Copy the characters between the start of the name string and the first none
- * #dict_attr_allowed_char to a buffer and initialise da as an unknown attribute.
+ * #dict_attr_allowed_chars char to a buffer and initialise da as an unknown attribute.
*
* @param[in] ctx To allocate unknown #fr_dict_attr_t in.
* @param[out] out Where to write the head of the chain unknown dictionary attributes.
* to by name.
*
* Copy the characters between the start of the name string and the first
- * none dict_attr_allowed_char to a buffer and perform a dictionary lookup
+ * none #dict_attr_allowed_chars char to a buffer and perform a dictionary lookup
* using that value.
*
* If the attribute exists, advance the pointer pointed to by name
- * to the first none dict_attr_allowed_char char, and return the DA.
+ * to the first none #dict_attr_allowed_chars char, and return the DA.
*
* If the attribute does not exist, don't advance the pointer and return
* NULL.
* @param[in] list_def The default list to set if no #pair_lists qualifiers are found in
* name.
* @param[in] allow_unknown If true attributes in the format accepted by
- * #fr_dict_unknown_afrom_suboid will be allowed, even if they're not in the main
+ * #fr_dict_unknown_afrom_oid_substr will be allowed, even if they're not in the main
* dictionaries.
* If an unknown attribute is found a #TMPL_TYPE_ATTR #vp_tmpl_t will be
* produced with the unknown #fr_dict_attr_t stored in the ``unknown.da`` buffer.