From: Alan T. DeKok Date: Fri, 25 Oct 2019 14:53:08 +0000 (-0400) Subject: add note to decode unknown fields X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613bc6a57e36d921499a4bbf773f3059fa0fc712;p=thirdparty%2Ffreeradius-server.git add note to decode unknown fields 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. --- diff --git a/src/lib/util/struct.c b/src/lib/util/struct.c index 2d9012da77c..bcda66aa10c 100644 --- a/src/lib/util/struct.c +++ b/src/lib/util/struct.c @@ -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; }