]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check return from fr_dict_unknown_attr_afrom_num() (CID #1503891) (#4748)
authorJames Jones <jejones3141@gmail.com>
Mon, 14 Nov 2022 15:24:24 +0000 (09:24 -0600)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 15:24:24 +0000 (09:24 -0600)
src/protocols/internal/decode.c

index d5fde8448fc3fe5bc2554f77d1fcd64d885d9adf..3cfe403ea6fc289528ebe872811b6fc4aded2a2d 100644 (file)
@@ -253,6 +253,7 @@ static ssize_t internal_decode_pair(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dic
        unknown:
                FR_PROTO_TRACE("Unknown attribute %" PRIu64, type);
                da = fr_dict_unknown_attr_afrom_num(ctx, parent_da, type);
+               if (!da) return PAIR_DECODE_FATAL_ERROR;
        } else {
                da = fr_dict_attr_child_by_num(parent_da, type);
                if (!da) {