Don't do counters for Status-Server. Fixes #612
authorAlan T. DeKok <aland@freeradius.org>
Sat, 26 Apr 2014 14:22:45 +0000 (10:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 26 Apr 2014 14:22:45 +0000 (10:22 -0400)
src/main/stats.c

index 6b7779c..8a0dbdb 100644 (file)
@@ -77,7 +77,7 @@ void request_stats_final(REQUEST *request)
         *      deleted, because only the main server thread calls
         *      this function, which makes it thread-safe.
         */
-       switch (request->reply->code) {
+       if (request->reply && (request->packet->code != PW_STATUS_SERVER)) switch (request->reply->code) {
        case PW_AUTHENTICATION_ACK:
                INC_AUTH(total_responses);
                INC_AUTH(total_access_accepts);