Add support for Vendor Specific Suboptions (RFC 4243)
[freeradius.git] / src / lib / dict.c
index 0d87b47..1738237 100644 (file)
@@ -1532,15 +1532,19 @@ static int process_attribute(char const* fn, int const line,
 
                                switch (type) {
                                        case PW_TYPE_IPV4_ADDR:
+                                       case PW_TYPE_IPV6_ADDR:
                                        case PW_TYPE_BYTE:
                                        case PW_TYPE_SHORT:
                                        case PW_TYPE_INTEGER:
                                        case PW_TYPE_DATE:
+                                       case PW_TYPE_STRING:
                                                break;
 
                                        default:
-                                               fr_strerror_printf( "dict_init: %s[%d] Only IP addresses can have the \"array\" flag set.",
-                                                           fn, line);
+                                               fr_strerror_printf( "dict_init: %s[%d] \"%s\" type cannot have the "
+                                                                  "\"array\" flag set",
+                                                                  fn, line,
+                                                                  fr_int2str(dict_attr_types, type, "<UNKNOWN>"));
                                                return -1;
                                }