From: Arran Cudbard-Bell Date: Thu, 31 Jul 2025 06:48:15 +0000 (-0700) Subject: Fix shallow copy for FR_TYPE_ATTR X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7b5480916e3814f43ccc7d1b5d7fa35306677f00;p=thirdparty%2Ffreeradius-server.git Fix shallow copy for FR_TYPE_ATTR --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index d9fbac2957..da75212f80 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -4210,6 +4210,11 @@ void fr_value_box_copy_shallow(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_bo dst->datum.ptr = ctx ? talloc_reference(ctx, src->datum.ptr) : src->datum.ptr; fr_value_box_copy_meta(dst, src); break; + + case FR_TYPE_ATTR: + dst->vb_attr = src->vb_attr; + fr_value_box_copy_meta(dst, src); + break; } }