From: Alan T. DeKok Date: Thu, 9 May 2019 11:33:52 +0000 (-0400) Subject: set flags correctly. Closes #2672 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f261bfb0d4eed18550008ed005135ecebdcb3cbc;p=thirdparty%2Ffreeradius-server.git set flags correctly. Closes #2672 --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index 3ac5321a144..6972ee108c1 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -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);