From: Alan T. DeKok Date: Thu, 25 Jul 2024 23:18:37 +0000 (-0700) Subject: ignore home server "ping" packets X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3448cd0dc1c6fb7842cda2bb1223256062b39ff7;p=thirdparty%2Ffreeradius-server.git ignore home server "ping" packets --- diff --git a/src/main/stats.c b/src/main/stats.c index 6aa908bfea..2c5df06d8e 100644 --- a/src/main/stats.c +++ b/src/main/stats.c @@ -95,6 +95,14 @@ void request_stats_final(REQUEST *request) if ((request->options & RAD_REQUEST_OPTION_STATS) != 0) return; + /* + * This packet was originated by the server, and not + * received from a client. It's a status-server or home + * server "ping" packet. So we ignore it for statistics + * purposes. + */ + if (!request->packet) return; + /* don't count statistic requests */ if (request->packet->code == PW_CODE_STATUS_SERVER) { return;