From: Alan T. DeKok Date: Mon, 5 Apr 2021 13:18:48 +0000 (-0400) Subject: shut down coa tunnel listener after cleaning up proxied packets X-Git-Tag: release_3_0_24~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a531a95ce3210d256c94f94100e7fe0c602fd2ff;p=thirdparty%2Ffreeradius-server.git shut down coa tunnel listener after cleaning up proxied packets --- diff --git a/src/main/process.c b/src/main/process.c index b24d8e47563..49bc481f486 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -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); /*