]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix direct manipulation of boxes in unit_test_module.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Oct 2021 16:21:24 +0000 (11:21 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Oct 2021 16:22:48 +0000 (11:22 -0500)
src/bin/unit_test_module.c

index f7ee9b04d376781797ca13fdfe7ac542c7430441..d5803aab04a78c7849edcf38acbbb49507f0903d 100644 (file)
@@ -224,7 +224,7 @@ static request_t *request_from_file(TALLOC_CTX *ctx, FILE *fp, RADCLIENT *client
                 *      but we don't support that here.
                 */
                if (vp->type == VT_XLAT) {
-                       vp->vp_strvalue = vp->xlat;
+                       fr_pair_value_bstrdup_buffer_shallow(vp, vp->xlat, false);
                        vp->xlat = NULL;
                        vp->type = VT_DATA;
                }