From: Alan T. DeKok Date: Tue, 7 Dec 2021 17:48:39 +0000 (-0500) Subject: use correct field X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f3c53cf38bccfd8fd3094988c145f3948899385;p=thirdparty%2Ffreeradius-server.git use correct field --- diff --git a/src/lib/util/edit.c b/src/lib/util/edit.c index 1a9b03867f..f7e67198ae 100644 --- a/src/lib/util/edit.c +++ b/src/lib/util/edit.c @@ -687,7 +687,7 @@ static int list_union(fr_edit_list_t *el, fr_pair_t *dst, fr_pair_list_t *src) * complex to check right now, so we punt on the * problem. */ - if (dst->type == FR_TYPE_STRUCT) { + if (dst->vp_type == FR_TYPE_STRUCT) { fr_strerror_printf("Cannot take union of STRUCT data types, it would break the structure"); return -1; } @@ -903,7 +903,7 @@ int fr_edit_list_apply_list_assignment(fr_edit_list_t *el, fr_pair_t *dst, fr_to if (!fr_type_is_structural(dst->vp_type)) { fr_strerror_printf("Cannot perform list assignment to non-structural type '%s'", - fr_table_str_by_value(fr_value_box_type_table, dst->type, "")); + fr_table_str_by_value(fr_value_box_type_table, dst->vp_type, "")); return -1; } @@ -958,6 +958,6 @@ int fr_edit_list_apply_list_assignment(fr_edit_list_t *el, fr_pair_t *dst, fr_to fr_strerror_printf("Invalid assignment operator %s for destination type %s", fr_tokens[op], - fr_table_str_by_value(fr_value_box_type_table, dst->type, "")); + fr_table_str_by_value(fr_value_box_type_table, dst->vp_type, "")); return -1; }