]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut down coa tunnel listener after cleaning up proxied packets
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 Apr 2021 13:18:48 +0000 (09:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 22 Jul 2021 13:55:24 +0000 (09:55 -0400)
src/main/process.c

index b24d8e475630931e43b094bf784ed14916a9310b..49bc481f4867ba4fda5f5691609988d595eb922c 100644 (file)
@@ -5569,9 +5569,21 @@ static void event_new_fd(rad_listen_t *this)
                                fr_exit(1);
                        }
                        PTHREAD_MUTEX_UNLOCK(&proxy_mutex);
+
+#ifdef WITH_COA_TUNNEL
+                       /*
+                        *      Clean up the proxied packets AND the
+                        *      normal one.
+                        */
+                       if (this->send_coa && this->parent) goto shutdown;
+#endif
+
                } else
 #endif /* WITH_PROXY */
                {
+#ifdef WITH_COA_TUNNEL
+               shutdown:
+#endif
                        INFO(" ... shutting down socket %s", buffer);
 
                        /*