]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
coa also means disconnect
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 Dec 2017 16:10:25 +0000 (11:10 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Dec 2017 16:10:25 +0000 (11:10 -0500)
src/modules/proto_radius/proto_radius.c

index 246938577591f15f61814434ac7fc3fd2285bdb5..1635adff2f7e419106f573975c74fab77a114a27 100644 (file)
@@ -157,6 +157,14 @@ static int type_parse(TALLOC_CTX *ctx, void *out, CONF_ITEM *ci, UNUSED CONF_PAR
        inst = talloc_get_type_abort(parent_inst->data, proto_radius_t);
        inst->code_allowed[code] = true;
 
+       /*
+        *      Hacks for CoA, which also means Disconnect.  And
+        *      they're both processed by the same handler.
+        */
+       if (code == FR_CODE_COA_REQUEST) {
+               inst->code_allowed[FR_CODE_DISCONNECT_REQUEST] = true;
+       }
+
        /*
         *      Parent dl_instance_t added in virtual_servers.c (listen_parse)
         */