From: Arran Cudbard-Bell Date: Tue, 12 Aug 2025 23:05:03 +0000 (-0600) Subject: Temporarily disable casting to? from? FR_TYPE_ATTR X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=308a25f24c7ea1e4317f4df3f10b52efdba4ecbf;p=thirdparty%2Ffreeradius-server.git Temporarily disable casting to? from? FR_TYPE_ATTR Code doesn't really make any sense, and it's apparently not exercised. --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index 751d02f3af4..e58266a6bef 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -3874,6 +3874,7 @@ int fr_value_box_cast(TALLOC_CTX *ctx, fr_value_box_t *dst, } break; /* use generic string/octets stuff below */ +#if 0 case FR_TYPE_ATTR: /* * Convert it to an integer of the correct length. Then, cast it in place. @@ -3901,7 +3902,9 @@ int fr_value_box_cast(TALLOC_CTX *ctx, fr_value_box_t *dst, } return fr_value_box_cast_in_place(ctx, dst, dst_type, dst_enumv); - +#else + case FR_TYPE_ATTR: +#endif /* * Invalid types for casting (were caught earlier) */