]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typo
authorAlan T. DeKok <aland@freeradius.org>
Wed, 31 Aug 2022 13:06:30 +0000 (09:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 31 Aug 2022 13:12:16 +0000 (09:12 -0400)
src/lib/unlang/edit.c

index 3c089e247bcf8253fed0b18b8b946fd4f5aab0b7..d4ce8383b69addfb5be4c1988de77763a860a6cb 100644 (file)
@@ -560,9 +560,9 @@ static int apply_edits_to_leaf(request_t *request, edit_map_t *current, map_t co
                 *      Assign only ONE value.
                 */
                num = tmpl_num(map->lhs);
-               if (num != NUM_UNSPEC) {
+               if ((num != NUM_UNSPEC) && map->rhs) {
                        if (tmpl_num(current->rhs.vpt) == NUM_ALL) {
-                               REDEBUG("%s[%d] Cannot assign multiple attributes on the to one", MAP_INFO);
+                               REDEBUG("%s[%d] Cannot assign to multiple attributes", MAP_INFO);
                                return -1;
                        }