]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check the request we reference, not the current request
authorAlan T. DeKok <aland@freeradius.org>
Sat, 15 Jul 2023 11:35:32 +0000 (07:35 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 15 Jul 2023 11:36:17 +0000 (07:36 -0400)
src/main/map.c

index e59fcec6f056eea50493c1fd77c4b77d1514b24e..34683a2e1295282d2d6ae05e360412df6d83c667 100644 (file)
@@ -1108,7 +1108,7 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t
         */
        if (((map->lhs->tmpl_list == PAIR_LIST_COA) ||
             (map->lhs->tmpl_list == PAIR_LIST_DM)) && !request->coa) {
-               if (request->parent) {
+               if (context->parent) {
                        REDEBUG("You can only do 'update coa' when processing a packet which was received from the network");
                        return -2;
                }