]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't count Status-Server in auth/acct counters
authorAlan T. DeKok <aland@freeradius.org>
Mon, 15 Mar 2021 17:15:31 +0000 (13:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Mar 2021 17:37:09 +0000 (13:37 -0400)
because we already don't count the replies

src/main/listen.c

index be3d94b80a525cb5f8ee598c157678c87ebc87eb..e09518e3fab9ca84e9d36cc33d11b2e2dbeb9380 100644 (file)
@@ -1521,13 +1521,12 @@ static int auth_socket_recv(rad_listen_t *listener)
                return 0;
        }
 
-       FR_STATS_TYPE_INC(client->auth.total_requests);
-
        /*
         *      Some sanity checks, based on the packet code.
         */
        switch (code) {
        case PW_CODE_ACCESS_REQUEST:
+               FR_STATS_TYPE_INC(client->auth.total_requests);
                fun = rad_authenticate;
                break;
 
@@ -1637,13 +1636,12 @@ static int acct_socket_recv(rad_listen_t *listener)
                return 0;
        }
 
-       FR_STATS_TYPE_INC(client->acct.total_requests);
-
        /*
         *      Some sanity checks, based on the packet code.
         */
        switch (code) {
        case PW_CODE_ACCOUNTING_REQUEST:
+               FR_STATS_TYPE_INC(client->acct.total_requests);
                fun = rad_accounting;
                break;