]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more "shut up compiler"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2021 18:58:15 +0000 (13:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2021 18:58:15 +0000 (13:58 -0500)
src/protocols/radius/decode.c

index 5f9403eec5b1c925dbf79950b845efd10a7c6ee8..ab8c4f31100573ca7dd325484fdf8e96f92b775f 100644 (file)
@@ -1479,7 +1479,6 @@ ssize_t fr_radius_decode_pair_value(TALLOC_CTX *ctx, fr_cursor_t *cursor, fr_dic
        if (!tag) {
                vp = fr_pair_afrom_da(ctx, parent);
        } else {
-               fr_assert(packet_ctx != NULL);
                fr_assert(packet_ctx->tags != NULL);
                fr_assert(packet_ctx->tags[tag] != NULL);
                vp = fr_pair_afrom_da(packet_ctx->tags[tag]->parent, parent);
@@ -1595,7 +1594,6 @@ done:
                return attr_len;
        }
 
-       fr_assert(packet_ctx != NULL);
        fr_assert(packet_ctx->tags != NULL);
        fr_assert(packet_ctx->tags[tag] != NULL);
        fr_cursor_append(&packet_ctx->tags[tag]->cursor, vp);