Allow old-style dictionary formats, too
authorAlan T. DeKok <aland@freeradius.org>
Wed, 30 Sep 2009 07:54:25 +0000 (09:54 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 30 Sep 2009 07:54:50 +0000 (09:54 +0200)
src/lib/dict.c

index 3fa2f0d..1f6c72e 100644 (file)
@@ -921,7 +921,15 @@ static int process_attribute(const char* fn, const int line,
                                                            fn, line);
                                                return -1;
                                }
-                               
+
+                               /*
+                                *      The only thing is the vendor name,
+                                *      and it's a known name: allow it.
+                                */
+                       } else if ((key == argv[3]) && !next && !block_vendor &&
+                                  ((vendor = dict_vendorbyname(key)) !=0)) {
+                               break;
+
                        } else {
                                fr_strerror_printf( "dict_init: %s[%d]: unknown option \"%s\"",
                                            fn, line, key);