]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
account for reference prefix, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 2 Aug 2018 12:32:54 +0000 (08:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 2 Aug 2018 12:33:37 +0000 (08:33 -0400)
src/bin/radmin.c

index 86ddb5d149ce06b9d2ec800ea029aceac72fe5c7..0f1ea6d337475a4af31ee39139cb578905bf1a62 100644 (file)
@@ -577,8 +577,8 @@ static int tab_expand_config_thing(TALLOC_CTX *talloc_ctx, UNUSED void *ctx, fr_
 
                        if (!want_section) {
                                if (*text && fr_command_strncmp(text, check)) {
-                                       expansions[count] = strdup(check);
-                                       count++;
+                                       // @todo - expand the pairs in this section
+                                       goto add;
                                }
 
                                continue;
@@ -599,6 +599,7 @@ static int tab_expand_config_thing(TALLOC_CTX *talloc_ctx, UNUSED void *ctx, fr_
                 */
                if (!fr_command_strncmp(text, check)) continue;
 
+       add:
                expansions[count] = str = malloc(reflen + strlen(check) + offset + 1);
                memcpy(str, ref, reflen);
                str[reflen] = '.';