]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ignore home server "ping" packets
authorAlan T. DeKok <aland@freeradius.org>
Thu, 25 Jul 2024 23:18:37 +0000 (16:18 -0700)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 25 Jul 2024 23:18:37 +0000 (16:18 -0700)
src/main/stats.c

index 6aa908bfeab3781719e3d46310be63e800d5ff49..2c5df06d8e6e86f62038e0e2195f5b5416d4a828 100644 (file)
@@ -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;