]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow receiving CoA packets on TLS listeners, too. Helps with #3356
authorAlan T. DeKok <aland@freeradius.org>
Tue, 7 Apr 2020 13:09:24 +0000 (09:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 7 Apr 2020 13:09:58 +0000 (09:09 -0400)
src/main/tls_listen.c

index 8b1e63c568af5c39454658122776dce8fe54655b..c65049e2d744555aabf6091239316a702cc61628 100644 (file)
@@ -391,6 +391,20 @@ redo:
                break;
 #endif
 
+#ifdef WITH_COA
+       case PW_CODE_COA_REQUEST:
+               if (listener->type != RAD_LISTEN_COA) goto bad_packet;
+               FR_STATS_INC(coa, total_requests);
+               fun = rad_coa_recv;
+               break;
+
+       case PW_CODE_DISCONNECT_REQUEST:
+               if (listener->type != RAD_LISTEN_COA) goto bad_packet;
+               FR_STATS_INC(dsc, total_requests);
+               fun = rad_coa_recv;
+               break;
+#endif
+
        case PW_CODE_STATUS_SERVER:
                if (!main_config.status_server) {
                        FR_STATS_INC(auth, total_unknown_types);