]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use correct number...
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 Nov 2015 17:48:42 +0000 (12:48 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Nov 2015 17:48:42 +0000 (12:48 -0500)
src/lib/dict.c

index 6a0c686f5b3dab154a512ff465e6ad459ece3635..c1607526d9e2851e68c5b3e1c7cff2adfdf2a27c 100644 (file)
@@ -1574,7 +1574,7 @@ static int process_attribute(char const* fn, int const line,
 
                *p = 0;
 
-               if (!sscanf_i(argv[1], &length)) {
+               if (!sscanf_i(argv[2] + 7, &length)) {
                        fr_strerror_printf("dict_init: %s[%d]: invalid length", fn, line);
                        return -1;
                }