return false;
}
- if (flags->subtype > FLAG_ENCRYPT_ASCEND_SECRET) {
- fr_strerror_printf("Invalid flag value %u", flags->subtype);
- return false;
- }
-
/*
* No special flags, so we're OK.
*
*/
if (!flags->subtype) return true;
+ if (flags->subtype > FLAG_ENCRYPT_ASCEND_SECRET) {
+ fr_strerror_printf("Invalid flag value %u", flags->subtype);
+ return false;
+ }
+
if (flag_concat(flags)) {
if (!parent->flags.is_root) {
fr_strerror_const("Attributes with the 'concat' flag MUST be at the root of the dictionary");