From: Alan T. DeKok Date: Wed, 18 Nov 2015 16:48:34 +0000 (-0500) Subject: Check name, not number X-Git-Tag: release_3_0_11~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeb04fdfd88371f102a0e2e503e8eac952e63ec8;p=thirdparty%2Ffreeradius-server.git Check name, not number --- diff --git a/src/lib/dict.c b/src/lib/dict.c index 03de2b36887..6a0c686f5b3 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -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;