Skip to content

Commit

Permalink
tmpl: Don't insert the same ref into the ref list twice
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 15, 2020
1 parent 12114e2 commit 11b9165
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/server/tmpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,6 @@ void tmpl_attr_set_unparsed(vp_tmpl_t *vpt, char const *name, size_t len)
ref = tmpl_ar_add(vpt, TMPL_ATTR_TYPE_UNPARSED);
ref->ar_unparsed = talloc_strndup(vpt, name, len);

fr_dlist_insert_tail(&vpt->data.attribute.ar, ref);
}

/** Resolve an undefined attribute using the specified rules
Expand Down

0 comments on commit 11b9165

Please sign in to comment.