]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
unknown attributes are always of type octets
authorAlan T. DeKok <aland@freeradius.org>
Sat, 22 Aug 2020 12:10:03 +0000 (08:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 22 Aug 2020 12:13:27 +0000 (08:13 -0400)
so we can create unknown DAs from known DAs of type != octets

src/lib/util/dict_unknown.c

index 2e2a73811bb61a8d14a205f7aa8137418405acf7..bc0ac8975af91e9ff77f754cbee17b1e19d2592f 100644 (file)
@@ -65,7 +65,7 @@ fr_dict_attr_t *fr_dict_unknown_acopy(TALLOC_CTX *ctx, fr_dict_attr_t const *da)
        /*
         *      Initialize the rest of the fields.
         */
-       dict_attr_init(n, parent, da->attr, da->type, &flags);
+       dict_attr_init(n, parent, da->attr, FR_TYPE_OCTETS, &flags);
 
        DA_VERIFY(n);