]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
list is only NULL when ctx is NULL
authorAlan T. DeKok <aland@freeradius.org>
Wed, 20 Dec 2023 22:38:09 +0000 (17:38 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Dec 2023 22:38:09 +0000 (17:38 -0500)
src/lib/server/pairmove.c

index ca04415ab7d24377beb25545b868579a46cf63fb..db5ec24fa751abced36b6fc21dfb2c7ec8d6578e 100644 (file)
@@ -326,7 +326,6 @@ static int radius_legacy_map_apply_structural(request_t *request, map_t const *m
         *      This call can return the parent list, even if the VP itself is missing.
         */
        tmpl_pair_list_and_ctx(ctx, list, request, tmpl_request(map->lhs), tmpl_list(map->lhs));
-       if (unlikely(!list)) return -1;
        if (!ctx) {
                /*
                 *      The parent is missing, so add the parent and then the VP.