]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
syntax OR callback
authorAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 22:29:22 +0000 (18:29 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 22:29:22 +0000 (18:29 -0400)
src/main/command.c

index 41815ef604779521f205c70aa8ee8d84c79b55e3..252272f153d2a0bd5c147ef60cb4c1d7c52fd67d 100644 (file)
@@ -955,7 +955,7 @@ char const *fr_command_help(fr_cmd_t *head, int argc, char const *argv[])
                cmd = fr_command_find(&start, argv[i], NULL);
                if (!cmd) return NULL;
 
-               if (!cmd->syntax) {
+               if (!cmd->syntax && !cmd->func) {
                        rad_assert(cmd->child != NULL);
                        start = cmd->child;
                        continue;