]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't clear the box, clear only the value.
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Sep 2023 19:42:02 +0000 (15:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Sep 2023 20:08:54 +0000 (16:08 -0400)
src/lib/util/value.c

index 27b322e1480c9e109119cb6b5083f376e453c22d..37f576e5b135be92dffd7787b12c324b9901378e 100644 (file)
@@ -3453,7 +3453,7 @@ int fr_value_box_cast_in_place(TALLOC_CTX *ctx, fr_value_box_t *vb,
                vb->entry = entry;
                return -1;
        }
-       fr_value_box_clear(&tmp);       /* Clear out any old buffers */
+       fr_value_box_clear_value(&tmp); /* Clear out any old buffers */
 
        /*
         *      Restore list pointers