]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add note to decode unknown fields
authorAlan T. DeKok <aland@freeradius.org>
Fri, 25 Oct 2019 14:53:08 +0000 (10:53 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 25 Oct 2019 15:06:04 +0000 (11:06 -0400)
once we've done a bit more work to allow unknown da's as children
of a struct.  It might work, but it's untested.

src/lib/util/struct.c

index 2d9012da77c8c7c3858fb405ca6bde53fa49eecb..bcda66aa10c8548253a6b3f8e5354519a583aa8b 100644 (file)
@@ -195,6 +195,9 @@ ssize_t fr_struct_from_network(TALLOC_CTX *ctx, fr_cursor_t *cursor,
 
                child = fr_dict_attr_child_by_num(key_vp->da, child_num);
                if (!child || (child->type != FR_TYPE_STRUCT)) {
+                       /*
+                        *      @todo - create unknown attrs from the data!
+                        */
                        return data_len;
                }