]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set flags correctly. Closes #2672
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 May 2019 11:33:52 +0000 (07:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 May 2019 11:34:12 +0000 (07:34 -0400)
src/lib/util/pair.c

index 3ac5321a144d9ce329406a8e568ec54275cb898e..6972ee108c1ecb9d35b43e352031deb5a67b623c 100644 (file)
@@ -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);