]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
save the current word, not the whole string
authorAlan T. DeKok <aland@freeradius.org>
Tue, 24 Jul 2018 17:44:13 +0000 (13:44 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 Jul 2018 17:44:13 +0000 (13:44 -0400)
src/lib/server/command.c

index 8450d5baaf75d8f1f6f53f720412d943e2a47f74..68f1fcdba39ae4c15ce033f4fdcd0613e760c752 100644 (file)
@@ -2394,7 +2394,7 @@ static int expand_syntax(fr_cmd_t *cmd, fr_cmd_info_t *info, fr_cmd_argv_t *argv
                                 *      Give the function the partial
                                 *      text which should be expanded.
                                 */
-                               info->argv[info->argc] = text;
+                               info->argv[info->argc] = word;
                                info->box[info->argc] = NULL;
                                info->argc++;