]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't print RHS when it's a list
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Jul 2022 18:40:29 +0000 (14:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Jul 2022 12:48:39 +0000 (08:48 -0400)
this has to be updated later to do the Right Thing

src/lib/unlang/compile.c

index 99db0642474ec77d490361535a1da1f6787ab2c2..00941b0c6f956abf0c5387b13a421d2235b188fe 100644 (file)
@@ -736,6 +736,8 @@ static void unlang_dump(unlang_t *instruction, int depth)
                        edit = unlang_generic_to_edit(c);
                        map = NULL;
                        while ((map = map_list_next(&edit->maps, map))) {
+                               if (!map->rhs) continue; /* @todo - fixme */
+
                                map_print(&FR_SBUFF_OUT(buffer, sizeof(buffer)), map);
                                DEBUG("%.*s%s", depth + 1, unlang_spaces, buffer);
                        }