From: Arran Cudbard-Bell Date: Wed, 21 Jul 2021 19:52:12 +0000 (-0500) Subject: Don't access data union if it's a structural attribute X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59c80207ddb6180a834709cab123f4bc367f7932;p=thirdparty%2Ffreeradius-server.git Don't access data union if it's a structural attribute --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index 0b492af1276..13782f0206d 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -2386,7 +2386,7 @@ void fr_pair_verify(char const *file, int line, fr_pair_t const *vp) fr_table_str_by_value(fr_value_box_type_table, FR_TYPE_OCTETS, ""), fr_table_str_by_value(fr_value_box_type_table, vp->data.type, "")); } - } else if (vp->da->type != vp->data.type) { + } else if (!fr_type_is_structural(vp->da->type) && (vp->da->type != vp->data.type)) { char data_type_int[10], da_type_int[10]; snprintf(data_type_int, sizeof(data_type_int), "%i", vp->data.type);