]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow "eap-*" for now.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 4 Nov 2019 15:27:20 +0000 (10:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 4 Nov 2019 21:18:05 +0000 (16:18 -0500)
it's fugly, but means that we have good errors most of the time.

src/lib/server/virtual_servers.c

index 07c75601b33abd696364d6c19c8ac54ac17f74ac..48ab91725e327a05d3e285098787f6c048eb604e 100644 (file)
@@ -265,12 +265,10 @@ static int namespace_on_read(UNUSED TALLOC_CTX *ctx, UNUSED void *out, UNUSED vo
        }
 
        if (virtual_server_namespace_set(server_cs, proto_dict, proto_dir) < 0) {
-#if 1
-               return 0;
-#else
+               if (strncmp(proto_dict, "eap-", 4) == 0) return 0;
+
                cf_log_perr(ci, "Failed initialising namespace \"%s\" - %s", namespace_str, fr_strerror());
                return -1;
-#endif
        }
 
        return 0;