From: Alan T. DeKok Date: Mon, 18 Jul 2022 18:40:29 +0000 (-0400) Subject: don't print RHS when it's a list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9f3888e6aa39f4cc6fe1d9e16655707e4225a85;p=thirdparty%2Ffreeradius-server.git don't print RHS when it's a list this has to be updated later to do the Right Thing --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 99db0642474..00941b0c6f9 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -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); }