Skip to content

Commit

Permalink
set flags correctly. Closes #2672
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 9, 2019
1 parent a88b055 commit f261bfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/util/pair.c
Expand Up @@ -366,7 +366,8 @@ VALUE_PAIR *fr_pair_copy(TALLOC_CTX *ctx, VALUE_PAIR const *vp)
* the VALUE_PAIR.
*/
if (vp->type == VT_XLAT) {
n->xlat = talloc_typed_strdup(n, n->xlat);
n->type = VT_XLAT;
n->xlat = talloc_typed_strdup(n, vp->xlat);
return n;
}
fr_value_box_copy(n, &n->data, &vp->data);
Expand Down

0 comments on commit f261bfb

Please sign in to comment.