]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Parent unknowns correctly
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Oct 2020 18:25:21 +0000 (13:25 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Oct 2020 18:25:21 +0000 (13:25 -0500)
src/protocols/dhcpv6/decode.c

index a026f68114cc9b5245cafe6f38aa51eda6e9d7c1..4848db191ab74887df4b65486ef393fda1ce0dec 100644 (file)
@@ -528,7 +528,7 @@ static ssize_t decode_option(TALLOC_CTX *ctx, fr_cursor_t *cursor, fr_dict_t con
 
        da = fr_dict_attr_child_by_num(parent, option);
        if (!da) {
-               da = fr_dict_unknown_afrom_fields(packet_ctx->tmp_ctx, fr_dict_root(dict), 0, option);
+               da = fr_dict_unknown_afrom_fields(packet_ctx->tmp_ctx, parent, 0, option);
                if (!da) return PAIR_DECODE_FATAL_ERROR;
        }
        FR_PROTO_TRACE("decode context changed %s -> %s",da->parent->name, da->name);