]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
all for all data types
authorAlan T. DeKok <aland@freeradius.org>
Wed, 13 Nov 2024 21:03:26 +0000 (16:03 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 13 Nov 2024 21:03:26 +0000 (16:03 -0500)
src/lib/util/cbor.c

index 0db50a0f964e052930d0ca647a664e36058ca614..36cb66803ee218bf25cb6f7b72c7efb9fed410ad 100644 (file)
@@ -50,7 +50,7 @@ static const char *cbor_type_to_str[8] = {
  *     number, which includes our data type.  If the tag type doesn't match the value here, then something is
  *     wrong.
  */
-static const uint64_t cbor_type_to_tag[FR_TYPE_MAX] = {
+static const uint64_t cbor_type_to_tag[FR_TYPE_MAX + 1] = {
        [FR_TYPE_DATE] = 1,
        [FR_TYPE_ETHERNET] = 48,
        [FR_TYPE_IPV4_ADDR] = 52,