From: Alan T. DeKok Date: Fri, 8 Sep 2023 19:42:02 +0000 (-0400) Subject: don't clear the box, clear only the value. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509b1bc5caeb999f63575a518cda4543095c1a09;p=thirdparty%2Ffreeradius-server.git don't clear the box, clear only the value. --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index 27b322e1480..37f576e5b13 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -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