Skip to content

Commit

Permalink
xlat: Fix copying attribtue refs in xlats
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 19, 2020
1 parent 9171d6b commit a88fe29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/unlang/xlat_tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ xlat_exp_t *xlat_from_tmpl_attr(TALLOC_CTX *ctx, vp_tmpl_t *vpt)

node = xlat_exp_alloc(ctx, XLAT_ATTRIBUTE, vpt->name, vpt->len);
node->attr = tmpl_alloc(node, TMPL_TYPE_ATTR, node->fmt, talloc_array_length(node->fmt) - 1, T_BARE_WORD);
memcpy(&node->attr->data, &vpt->data, sizeof(vpt->data));
tmpl_attr_copy(node->attr, vpt);

return node;
}
Expand Down

0 comments on commit a88fe29

Please sign in to comment.