]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix test backto just command
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jul 2018 19:11:19 +0000 (15:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jul 2018 19:11:19 +0000 (15:11 -0400)
src/main/command.c

index 9a2fa3d280bbec28cfa4599837cfc4a9364454a6..1428b4efe815837f2049c238920374f151176f41 100644 (file)
@@ -1312,7 +1312,6 @@ redo:
                }
 
                *argv_p = argv;
-
                return used;
        }
 
@@ -1566,7 +1565,7 @@ int fr_command_str_to_argv(fr_cmd_t *head, fr_cmd_info_t *info, char *str)
         *      command, and there are more arguments than we had on
         *      input, do syntax checks on the new arguments.
         */
-       if ((argc > (cmd_argc + 1)) && (argc > info->argc)) {
+       if ((argc > cmd_argc) && (argc > info->argc)) {
                int rcode;
 
                /*