]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use pointer for types
authorAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 22:21:30 +0000 (18:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 22:21:30 +0000 (18:21 -0400)
so that we can parse combo-ip to ipv4 or ipv6

src/main/command.c

index 4266a4d64e68f35b5dd8003a627c4b931b6cb4f6..41815ef604779521f205c70aa8ee8d84c79b55e3 100644 (file)
@@ -921,7 +921,7 @@ int fr_command_run(FILE *fp, fr_cmd_t *head, int argc, char const *argv[])
                        /*
                         *      Parse the data to be sure it's well formed.
                         */
-                       if (fr_value_box_from_str(NULL, &box, cmd->syntax_types[j],
+                       if (fr_value_box_from_str(NULL, &box, &cmd->syntax_types[j],
                                                  NULL, argv[i + j], -1, quote, true) < 0) {
                                return -(i + j);
                        }