From: Alan T. DeKok Date: Fri, 8 Sep 2023 19:42:17 +0000 (-0400) Subject: clear the value, to be consistent with other uses of free_value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fd8959c65f1bb85c71d43ae7c7cc8338dba3a48;p=thirdparty%2Ffreeradius-server.git clear the value, to be consistent with other uses of free_value --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index 37f576e5b13..84908a4f70f 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -5412,7 +5412,7 @@ ssize_t fr_value_box_list_concat_as_string(bool *tainted, bool *secret, fr_sbuff if (secret && vb->secret) *secret = true; if (vb_should_remove(proc_action)) fr_value_box_list_remove(list, vb); - if (vb_should_free_value(proc_action)) fr_value_box_clear(vb); + if (vb_should_free_value(proc_action)) fr_value_box_clear_value(vb); if (vb_should_free(proc_action)) talloc_free(vb); }} @@ -5514,7 +5514,7 @@ ssize_t fr_value_box_list_concat_as_octets(bool *tainted, bool *secret, fr_dbuff if (secret && vb->secret) *secret = true; if (vb_should_remove(proc_action)) fr_value_box_list_remove(list, vb); - if (vb_should_free_value(proc_action)) fr_value_box_clear(vb); + if (vb_should_free_value(proc_action)) fr_value_box_clear_value(vb); if (vb_should_free(proc_action)) talloc_free(vb); }}