]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
json: Emit an error on structural types
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 21 Feb 2026 01:27:17 +0000 (18:27 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 21 Feb 2026 01:27:17 +0000 (18:27 -0700)
src/lib/json/json.c

index c14ca86f79772a01675140b9b9d4614ddce21296..7d13f47ea3d4c4e304d2b175fcee033d6948d3c0 100644 (file)
@@ -273,6 +273,7 @@ json_object *json_object_from_value_box(fr_value_box_t const *data)
 #endif
 
        case FR_TYPE_STRUCTURAL:
+               fr_strerror_const("Can't convert structural type to JSON");
                return NULL;
        }
 }