]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
reference the correct tmpl
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Aug 2022 20:37:02 +0000 (16:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 30 Aug 2022 20:37:02 +0000 (16:37 -0400)
src/lib/unlang/edit.c

index afd5a9d679ee6d2a9854338ba7ed3aebb4fe6316..f398fefa42e7347177d0398552ef3f4d1a9a4762 100644 (file)
@@ -561,7 +561,7 @@ static int apply_edits_to_leaf(request_t *request, edit_map_t *current, map_t co
                 */
                num = tmpl_num(map->lhs);
                if (num != NUM_UNSPEC) {
-                       if (tmpl_num(map->rhs) == NUM_ALL) {
+                       if (tmpl_num(current->rhs.vpt) == NUM_ALL) {
                                REDEBUG("%s[%d] Cannot assign multiple attributes on the to one", MAP_INFO);
                                return -1;
                        }