From: Alan T. DeKok Date: Mon, 4 Nov 2019 15:27:20 +0000 (-0500) Subject: allow "eap-*" for now. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a18a3d4f22db68e70984b36343c74408a7cec6;p=thirdparty%2Ffreeradius-server.git allow "eap-*" for now. it's fugly, but means that we have good errors most of the time. --- diff --git a/src/lib/server/virtual_servers.c b/src/lib/server/virtual_servers.c index 07c75601b33..48ab91725e3 100644 --- a/src/lib/server/virtual_servers.c +++ b/src/lib/server/virtual_servers.c @@ -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;