]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
All protocols have to have a dictionary.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 4 Nov 2019 13:42:46 +0000 (08:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 4 Nov 2019 13:44:37 +0000 (08:44 -0500)
So we add an empty dictionary for the "control" space.

We can later add attributes for packets which are sent to workers.

share/dictionary/control/dictionary [new file with mode: 0644]
src/lib/server/virtual_servers.c

diff --git a/share/dictionary/control/dictionary b/share/dictionary/control/dictionary
new file mode 100644 (file)
index 0000000..e139ac4
--- /dev/null
@@ -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
index 07c75601b33abd696364d6c19c8ac54ac17f74ac..b8758e730016dc83146ecdf7f1a9de2ffb6a5eba 100644 (file)
@@ -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;