From: Arran Cudbard-Bell Date: Fri, 2 Oct 2020 18:25:21 +0000 (-0500) Subject: Parent unknowns correctly X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6da987a3b2dd8a6c6f5b6b1db60046c8cc2bcbf;p=thirdparty%2Ffreeradius-server.git Parent unknowns correctly --- diff --git a/src/protocols/dhcpv6/decode.c b/src/protocols/dhcpv6/decode.c index a026f68114c..4848db191ab 100644 --- a/src/protocols/dhcpv6/decode.c +++ b/src/protocols/dhcpv6/decode.c @@ -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);