* parsing the configuration files.
*/
slen = fr_dict_attr_by_qualified_name_substr(NULL, &da,
- rules->dict_def, &FR_SBUFF_TMP(p, strlen(p)),
+ rules->dict_def, &FR_SBUFF_TMP(p, strlen(p) + 1),
!rules->disallow_internal);
if (slen <= 0) {
fr_dict_attr_t *unknown_da;
/*
* Get / skip protocol name.
*/
- slen = dict_by_protocol_substr(NULL, &dict, &FR_SBUFF_TMP(ref, strlen(ref)), ctx->dict);
+ slen = dict_by_protocol_substr(NULL, &dict, &FR_SBUFF_TMP(ref, strlen(ref) + 1), ctx->dict);
if (slen < 0) {
talloc_free(ref);
return -1;
* Get / skip protocol name.
*/
slen = dict_by_protocol_substr(NULL,
- &dict, &FR_SBUFF_TMP(this->ref, strlen(this->ref)), ctx->dict);
+ &dict, &FR_SBUFF_TMP(this->ref, strlen(this->ref) + 1),
+ ctx->dict);
if (slen <= 0) {
fr_dict_t *other;
/*
* Parse the name.
*/
- slen = fr_dict_attr_by_qualified_name_substr(NULL, &da, dict, &FR_SBUFF_TMP(p, strlen(p)), true);
+ slen = fr_dict_attr_by_qualified_name_substr(NULL, &da, dict, &FR_SBUFF_TMP(p, strlen(p) + 1), true);
if (slen <= 0) {
slen = fr_dict_unknown_afrom_oid_substr(ctx, &da_unknown, root, p);