]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Temporarily disable casting to? from? FR_TYPE_ATTR
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 Aug 2025 23:05:03 +0000 (17:05 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 12 Aug 2025 23:29:01 +0000 (17:29 -0600)
Code doesn't really make any sense, and it's apparently not exercised.

src/lib/util/value.c

index 751d02f3af47e42a7ca2cb719aa32dbfc05f5db4..e58266a6beffa60c9a27fe2ddc5e7d1f55074b02 100644 (file)
@@ -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)
         */