]> 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>
Mon, 5 Apr 2021 13:18:48 +0000 (09:18 -0400)
src/main/process.c

index 200e67a93e12782ec30312143bf8a4fe361db63b..fb74da8cf233842e1a46630387fc000ce49af699 100644 (file)
@@ -5554,9 +5554,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);
 
                        /*