]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check name, not number
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 Nov 2015 16:48:34 +0000 (11:48 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Nov 2015 16:48:50 +0000 (11:48 -0500)
src/lib/dict.c

index 03de2b36887a181360f215ce94d98f05190cc70e..6a0c686f5b3dab154a512ff465e6ad459ece3635 100644 (file)
@@ -1497,7 +1497,7 @@ static int process_attribute(char const* fn, int const line,
        /*
         *      Dictionaries need to have real names, not shitty ones.
         */
-       if (strncmp(argv[1], "Attr-", 5) == 0) {
+       if (strncmp(argv[0], "Attr-", 5) == 0) {
                fr_strerror_printf("dict_init: %s[%d]: Invalid attribute name",
                                   fn, line);
                return -1;