From: Alan T. DeKok Date: Wed, 4 Jul 2018 19:11:19 +0000 (-0400) Subject: fix test backto just command X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63deb7992ee34a3c1f34a0706024ea69dd417200;p=thirdparty%2Ffreeradius-server.git fix test backto just command --- diff --git a/src/main/command.c b/src/main/command.c index 9a2fa3d280b..1428b4efe81 100644 --- a/src/main/command.c +++ b/src/main/command.c @@ -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; /*