From: Alan T. DeKok Date: Mon, 4 Nov 2019 13:42:46 +0000 (-0500) Subject: All protocols have to have a dictionary. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f90fef77a7f91a3853cb279b3809f5676bb9ba4;p=thirdparty%2Ffreeradius-server.git All protocols have to have a dictionary. So we add an empty dictionary for the "control" space. We can later add attributes for packets which are sent to workers. --- diff --git a/share/dictionary/control/dictionary b/share/dictionary/control/dictionary new file mode 100644 index 00000000000..e139ac4bf86 --- /dev/null +++ b/share/dictionary/control/dictionary @@ -0,0 +1,17 @@ +## -*- text -*- +# Copyright (C) 2019 The FreeRADIUS Server project and contributors +# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0 +# Version $Id$ +############################################################################## +# +# Dictionary for control sockets. +# +# $Id$ +# +############################################################################## + +PROTOCOL Control 255 + +# +# For now there are no attributes in the control socket space. +# \ No newline at end of file diff --git a/src/lib/server/virtual_servers.c b/src/lib/server/virtual_servers.c index 07c75601b33..b8758e73001 100644 --- a/src/lib/server/virtual_servers.c +++ b/src/lib/server/virtual_servers.c @@ -265,12 +265,8 @@ 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 cf_log_perr(ci, "Failed initialising namespace \"%s\" - %s", namespace_str, fr_strerror()); return -1; -#endif } return 0;