From: Alan T. DeKok Date: Sat, 5 Apr 2025 13:10:42 +0000 (-0400) Subject: ensure an empty string has a value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1258ad4a7026ede50bdcac0f28fcda5d643afb86;p=thirdparty%2Ffreeradius-server.git ensure an empty string has a value --- diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index 7f436736fbd..9e15bd8a53d 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -663,11 +663,14 @@ static int apply_edits_to_leaf(request_t *request, unlang_frame_state_edit_t *st * * We have to check this here, because the quote is part of the tmpl, and we call * xlat_push(), which doesn't know about the quote. + * + * @todo - we should really push the quote into the xlat, too. */ box = fr_value_box_list_head(¤t->rhs.result); if (!box) { MEM(box = fr_value_box_alloc(state, FR_TYPE_STRING, NULL)); + fr_value_box_strdup(box, box, NULL, "", false); fr_value_box_list_insert_tail(¤t->rhs.result, box); } else if (fr_value_box_list_concat_in_place(box, box, ¤t->rhs.result, FR_TYPE_STRING,